on ‎2009 May 19 5:57 PM
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.
Request clarification before answering.
Did you ever find out how to do this? I'm having a similar issue.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.