I am downloading a script to BigFix clients and running it. It’s expect and expect is installed on the client. However, I get a return code of 0 in the log but he script doesn’t run properly or something. It works from the command line.
This is the command in Big Fix
wait /bin/sh --login -c “/var/opt/BESClient/__BESData/actionsite/__Download/tsmCache.exp {parameter “TSMPassword” of action}”
That may show if some kind of error is being encountered. I wonder whether dsmc is dependent upon some environment variable that isn’t being defined in the shell.
you can turn on expect in debug mode and enbale the expect logs. dsmc is TSM client backup/restore utility. we have used to before when we were using the TSM backup now we are at EMC networker.
#!/usr/bin/expect -d
log_file /tmp/logs.exp
“>” might not work. You have to put that expression in the wrapper script for redirection.
besclient logs might have some details why its not runing. and expect log can also shed some light on that.