Guest User

Untitled

a guest
Jun 25th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. #!/bin/bash
  2. if [ $# = 0 ] ;
  3. then
  4.    echo "No parameters, Please, Input a Correct Directory"
  5.    read i
  6.  
  7. else
  8.    i=$1
  9. fi
  10.  
  11. if [ -e $i ] && [ -d $i ] ;
  12. then
  13.    echo "Synchronizing requested folders"
  14.    scp -r $i patelpn@athena.ecs.csus.edu:~/csc60/
  15. else
  16.    echo "Error, Provided Incorrect Directory"
  17. fi
Add Comment
Please, Sign In to add comment