Wildcard in shell script called from an Expect script
I have an Expect script that directs a shell script into ssh and runs that
script on several hosts. However, there's a wildcard in that shell script
which is causing errors.
Here's what my Expect script looks like.
spawn list.sh 2&>1 > /dev/null
Here's what list.sh looks like.
ssh user@host "cat | bash /dev/stdin " < command.sh
And here's command.sh.
ls -l /var/log/*
The error...
ls: /var/log/*: No such file or directory
This is only a simplified example of what I'm trying to achieve with what
I have to work with. Any help would be appreciated.
No comments:
Post a Comment