Bash BkUp script
I am trying to write my first script. It's not much of an effort, but I would like to understand why it doesn't work and the principle behind the correction.
Code:
su |
su starts a new shell.
|
If you want to run the command as root, use sudo or try su -c "command"
|
Thanks everybody!
The fact that a new shell was opened I assumed but I also assumed that the same thing would happen if I used "sudo" or "su -c" and that's why I didn't try them. Matthew |
All times are GMT -5. The time now is 01:50 AM. |