[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] to sudo or not to sudo



Gentle Folk

I have a bash script I often run which requires root access, so I
precede the command with sudo.  It looks like this:

sudo bin/mount_some_network_folders

After that, I usually run a command that does not require root access.
It looks like this:

idle bin/ascript.py

So I thought, why not append that command to the end of my script and
save a score of keystrokes.  My question is, can I return back from
the sudo while inside the bash script before executing that last line?

...John