Quantcast
Channel: How do i run su username -c "command " in a sequence - Super User
Browsing latest articles
Browse All 3 View Live

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

Why notsu username -c "cd /home/username/ ; git something.com; git something2.com; git something3.com"

View Article


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

Add the waitcommand.su username -c "cd /home/username/ ; git something.com"; waitThis will tell the script to wait for the sub-process to finish.

View Article


How do i run su username -c "command " in a sequence

am trying to write a script that runs commands in a sequence as a user but su keeps doing every command at the same time instead of running them one after anotherthe script looks likesu username -c "cd...

View Article
Browsing latest articles
Browse All 3 View Live