Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # svn update
- CONF_FILE_DIR=/tmp/myconf
- LOG_FILE=/tmp/mylogin.txt
- echo `pwd` >> $LOG_FILE
- sudo su svnupdate # if i do this,the next instruction will wait 'exit' command from user svnupdate,so script will stop,and waiting
- # my goal is when script jump to user svnupdate ,it can still execute following instructions!
- echo `whoami` >> $LOG_FILE
- cd $CONF_FILE_DIR
- svn update
- exit
- echo ok >> $LOG_FILE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement