on 03-03-2011 1:54 AM
Hello All,
I am trying to rename a file (which is created by channel) using "Run Operating System Command After Message Processing"
Following is the command that I mentioned in the channel:
mv /tmp/output.txt output_latest.txt
When a message is triggered from source, I can see the above command is executed successfully in channel audit log.
But the file is not being renamed.
Can some one tell me whether there is anything wrong in the syntax?
THanks,
Regards,
Naresh
>>Can some one tell me whether there is anything wrong in the syntax?
Yes Sinha pointed right. First go to shell prompt and then move command.
Your move command is right in syntax.
#!/bin/bash
mv oldfile newfile
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Enter #!/bin/bash or your shell information in first line.
#!/bin/bash or #!/bin/Ksh or #!/bin/Csh or whatever in your case.
next line will be your move command.
Regard
Aashish Sinha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.