Guest User

Untitled

a guest
Jan 18th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. function login_shelf {
  2. expect -c "
  3. set timeout 15
  4. spawn $1
  5. expect "password:"
  6. send "$PWr"
  7. expect "#"
  8. sleep 1
  9. exit
  10. "
  11. }
  12. # login and make the valgrind directory at /sfs/software/shelf/current
  13. set -- /opt/swe/tools/ext/gnu/valgrind-3.7.0/i686-linux2.6/lib/valgrind/*
  14. login_shelf "/opt/corp/projects/shelftools/bin/app rsync -Lau $* $shelf:/shelf/valgrind"
  15.  
  16. expect eof
  17. wait
Add Comment
Please, Sign In to add comment