Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program Object Issue

Status
Not open for further replies.

sudkool

Programmer
Jul 17, 2006
6
US
I have created a Linux script (.sh) which will look for a particular file, e.g. ready.txt, and if the file is present on the Linux Server (BO) machine, my script will rename it to done.txt. It is a basic Linux script which will just do the renaming. Now, when I execute this script on my Linux machine, it is doing exactly what I described above.

To create a program object based on this shell script, I did following steps;

1. Copy the Linux code and pasted in notepad on my PC, e.g. renTask.sh
2. Open CMC from my windows machine and open window of new objects.
3. Located (Browsed) “renTask.sh” file saved on my PC.
4. Selected Executable (binary, batch, shell script) option and submitted.

When I execute the above Program Object, the status says “Success” but the file on my Linux machine, ready.txt, is not renamed.

By the way, the only reason I copied my .sh code to notepad is because I am not allowed to browse / connect to Linux folder where the shell scripts are saved via my PC.

Could someone please guide me what I am missing here?

My environment:
BO servers: Linux
PC: Windows XP

Thank you in advance Gurus.
 
does your script have a FULL path denoted within it for the ready.txt file? without a full path such as /usr/1234/ready.txt it probably won't find your file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top