Hello:
I'm curious about this, too. If I use the "echo -n" command, will any commands that follow be executed? For example, I have added the following to /etc/rc.local:
Code:
{ date; hdparm -S60 /dev/sda; hdparm -S60 /dev/sdb; hdparm -d 1 /dev/hda; } >> /var/log/hdparm.log
but each of the commands is logged on a separate line, with an extra line between. I would like to have them all logged on the same line. Would
Code:
echo -n `date; hdparm -S60 /dev/sda; hdparm -S60 /dev/sdb; hdparm -d 1 /dev/hda;` >> /var/log/hdparm.log
accomplish this? I.E., will these commands actually be executed, or just the output echoed to the log file?
Thanx,
Vince