Skip to main content
Question

Need Help: Running terminal command and accepting input


Forum|alt.badge.img+2

Hi All,

Need urgent help in running the terminal command and accepting input from the terminal while executing the script from self-service.

ssh dkadmin@$IP "mkdir /User/Shared/$User"<<$4

Moving data to a new machine excluding Trash and Music.

rsync -avp --progress --exclude 'Caches' --exclude '.Trash1' --exclude 'Music' -e ssh /Users/$User dkadmin@$IP:/Users/Shared/$User 2>error.log

I need to run above mentioned 2 commands which are working fine in terminal but not in self-service
I also tried using OSASCRIPT but it is giving syntax error:

moving.sh: line 35: tell: command not found
moving.sh: line 36: /anaconda3/bin/activate: Permission denied
moving.sh: line 37: syntax error near unexpected token `do'
moving.sh: line 37: ` do shell script 'ssh dkadmin@$IP "mkdir /User/Shared/$User"''

moving.sh: line 35: tell: command not found
moving.sh: line 36: /anaconda3/bin/activate: Permission denied
moving.sh: line 37: syntax error near unexpected token `do'
moving.sh: line 37: ` do shell script (ssh dkadmin@$IP "mkdir /User/Shared/$User")'

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings