Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # svn update
  4.  
  5. CONF_FILE_DIR=/tmp/myconf
  6. LOG_FILE=/tmp/mylogin.txt
  7. echo `pwd` >> $LOG_FILE
  8. sudo su svnupdate # if i do this,the next instruction will wait 'exit' command from user svnupdate,so script will stop,and waiting
  9. # my goal is when script jump to user svnupdate ,it can still execute following instructions!
  10. echo `whoami` >> $LOG_FILE
  11.  
  12. cd $CONF_FILE_DIR
  13. svn update
  14. exit
  15. echo ok >> $LOG_FILE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement