using variables in cron
unlike normal bash scripts, you can’t really use the back ticks to execute a certain command like so
DATE=`date +%F`
In crontab, you have to use the $(), eg
$(date +\%F)
unlike normal bash scripts, you can’t really use the back ticks to execute a certain command like so
DATE=`date +%F`
In crontab, you have to use the $(), eg
$(date +\%F)
fsck on lvm can be a bit tricky. Like a the normal process, the partition needs to be umounted and we can boot up using the rescue cd or in emergency mode. Normally, you
fsck /dev/sda1
if the partition is lvm, you need to activate the lvm first like so
vgchange –ignorelockingfailure -ay
lvscan –ignorelockingfailure (this command should now [...]
this could be due to many reasons. If your data is in a nfs mounted drive, restart nfs and it should fix the problem.
It is important that developers follow a certain coding standard to help make the code readable and maintainable. These are what I gathered so far as the best coding practice:
File formatting:
- Never close php tag when using zend framework, ie, “?>”
- Use 4 space indentation as tab spacing. It is possible to configure this in [...]
Just like microsoft active directory, having a centralised authentication server in linux is important especially when you have more than one server or service to manage. Just imagine each service (ssh, samba, httpd…etc) has its own user database… Sooner or later, you will find managing users very difficult. A simple task like deleting a user [...]