Reputation
13,877
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 21 39
Newest
 Nice Answer
Impact
~886k people reached

Apr
28
comment How to launch a bash script in another one?
@RaspDealer: You can set such privileges in the sudo configuration file via the visudo command. Read up on the syntax. There might also be annotated examples and further instructions in the file when it opens.
Apr
28
comment How to launch a bash script in another one?
The "test.sh done!" line will right now be written to the log directly after test.sh has forked; not when the command is actually done. You should rather have a second line like: (sudo ./temp.sh "$1" "$2" "$3" && echo "test.sh done!") >>/home/pi/test.log &. You still won't be able to provide credentials for sudo non-interactively, so you will need to give the Deluge user sudo privileges to execute test.sh without password authentication for your attempt to work.
Apr
22
awarded  Caucus
Apr
16
awarded  Nice Answer
Apr
16
reviewed Reject Ctrl+Backspace inserts a small box instead of erasing
Apr
16
reviewed Reject How to clear the contents of a file from the command line?
Apr
16
reviewed Approve Cannot install show because of FQDN
Apr
9
comment How to print process id into statment
You have basic syntax errors for what you want to achieve. See e.g. stackoverflow.com/q/16072351/445621 for an example of command substitution into a shell variable.
Mar
31
comment VLC bash transcoding script destination directory
@Dezmond: "Locally" as in "on my computer". Try grabbing the script from pastebin.com/DhZ7yjsC instead; perhaps there is some issue with Stack Exchange code markup that I'm not seeing here.
Mar
29
comment Alias not working
@grawity: All right, I mostly use Mercurial in a similar way that has had such a switch for a long time. I looked it up for Git in the manual on my local system as I wrote the above, since I just assumed it would have a similar switch :-) . Stack Overflow has a question that confirms that it is quite recent; only since 1.8.5, actually.
Mar
29
comment What is the different between “sudo su” and “sudo bash”?
@EarthEngine: Just write cat <<EOF | sudo tee -a file, followed by content and a new EOF. Your order works as well. Also, the FAQ linked by @AvinashRaj explains the difference in sudo su and sudo bash further down: Special notes on sudo and shells
Mar
29
comment Alias not working
Note that the command can be written in a slightly more straightforward way: ssh user@host git -C /var/www/blog/posts pull.
Mar
29
comment What is the different between “sudo su” and “sudo bash”?
You can use sudo tee for redirection with sudo rights.
Mar
29
answered Delete all empty folders, even with .svn folders in it
Mar
24
reviewed Reject Run user code safely
Mar
24
reviewed Reject Run user code safely
Mar
24
reviewed Reject Where does the custom network icon show up?
Mar
24
reviewed Approve Snow Leopard: make command not found, even though XCode is installed?
Mar
24
reviewed Approve rsync from two servers to a common location
Mar
23
reviewed Approve what to do with system installed python versions when starting with pythonbrew