Need Help: Running terminal command and accepting input

usingya
New Contributor

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 0