Highlighted
no3am Absent Member.
Absent Member.
671 views

unable to run shell script

Jump to solution

Dear experts,

I'm using the SSH command to try and run a shell script, it shows that it runs fine but in fact the script doesn't run OR it runs but fails to execute.

The shell script itself runs another python script, that's all it does, it's sort of a wrapper that gives me back an exit code.

The command arguments are:

cd /path_to_script/
./myScript.sh "${arg1}" "${arg2}" "${arg3}"

We're using OO 10.5 and content base 1.6.2, any help would be most appreciated. 

Regards,

Naim

Labels (2)
Tags (1)
0 Likes
1 Solution

Accepted Solutions
no3am Absent Member.
Absent Member.

Re: unable to run shell script

Jump to solution

I was able to work around this by using the SSH Shell op instead of the SSH Command op.

That solved the problem for me, but not before I upgraded my base content to 1.8

0 Likes
3 Replies
Srinivaslogic
Visitor.

Re: unable to run shell script

Jump to solution

Have you tried to run script using absolute path?

like sh /absolutepath/script.sh

0 Likes
no3am Absent Member.
Absent Member.

Re: unable to run shell script

Jump to solution

Thanks for the reply, this was actually moved to the R&D team, they're looking into it.

I will update once I know something.

0 Likes
no3am Absent Member.
Absent Member.

Re: unable to run shell script

Jump to solution

I was able to work around this by using the SSH Shell op instead of the SSH Command op.

That solved the problem for me, but not before I upgraded my base content to 1.8

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.