Quantcast
Channel: How do i run su username -c "command " in a sequence - Super User
Viewing all articles
Browse latest Browse all 3

Answer by BlizzardsGambit for How do i run su username -c "command " in a sequence

$
0
0

Add the waitcommand.

su username -c "cd /home/username/ ; git something.com"; wait

This will tell the script to wait for the sub-process to finish.


Viewing all articles
Browse latest Browse all 3

Trending Articles