Hi,
I have a perl script which does an ssh to another system for an ls of a directory. The command used in the script is:
ssh computer dir /archive/myfile
I recieve the message that the remote pc cmd failed.
However, if I do the same command from a command line in a shell it gives me the directory listing. Why does this command work from the command line and not in the perl script?
Thanks for any feedback.
Lucy
I have a perl script which does an ssh to another system for an ls of a directory. The command used in the script is:
ssh computer dir /archive/myfile
I recieve the message that the remote pc cmd failed.
However, if I do the same command from a command line in a shell it gives me the directory listing. Why does this command work from the command line and not in the perl script?
Thanks for any feedback.
Lucy