Avatar of CRC64
CRC64
 asked on

Expect script work locally but not when called remotely via SSH

My expect script expect-script.txt.txt  runs fine when launched locally, but when I launch it from a remote server I get errors suggesting that the paths of the files are invalid. expect-error.txt.

I am clueless as what needs to be added to make this work ...

Thanks in advance for your help.
Shell ScriptingLinux

Avatar of undefined
Last Comment
CRC64

8/22/2022 - Mon
Gary

Its saying there is no file or directory called autosave_list
Is there?
CRC64

ASKER
Here there is.  

The script works locally perfectly ...

The error about the file is only when launched remotely
Gary

Confused. Are you trying to run this script on a remote server or trying to run it from a remote server
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
CRC64

ASKER
Sorry. The script is on server A and I am try to run it FROM server B.

 While on server B I am doing:  ssh username@serverA <full_path_of_expect_file>

The script works correctly when run on server A
ASKER CERTIFIED SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
CRC64

ASKER
Yes, that was the problem. Thank you !!!