cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Program Objects Issue

Former Member
0 Likes
205

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) u201CrenTask.shu201D 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 u201CSuccessu201D 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.

View Entire Topic
Former Member
0 Likes

Did you ever find out how to do this? I'm having a similar issue.

Thanks!

Former Member
0 Likes

I'm no Linux guru but does the account that the program job server runs under have access to the file to be renamed?

Former Member
0 Likes

I'm just trying to remove a file.

The file to be removed has permissions set so that it could be modified/removed by anyone.

My program object just contains a one liner: rm filename

I've tried different versions of this... adding -f to force, qualifying the filename, and setting the Working Directory in the Program Parameters settings.

The job runs successfully and nothing happens.