on 06-25-2010 12:00 AM
Hi All,
I am trying to pick multiple files with same Name but with timestamp and different extensions.
ex:
SAPOpenSalesOrder_YYYYMMDD.dat
SAPOpenSalesOrder_YYYYMMDD.man
SAPOpenSalesOrder_YYYYMMDD.done
I am using the following code at command level to move the above file to another folder (/usr/sap/PI/Out to /usr/sap/PI/In).
mv -f /usr/sap/PI/Out/SAPOpenSalesOrder. /usr/sap/PI/In
But its not working. Any suggestion will help..
Regards,
Venu
hi,
why do you move the file ussing a OS command, why dont you select the Processing Mode: Archive
Thanks
Rodrigo P.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
OS Command can be used only for NFS. If you are using FTP, Use Advance Selection for Source File where you can pick multiple file with exclusuion mask.
Regards,
Abid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venu,
You need to run only after message processing, which you are doing is correct.
I am just wondering the line -f in the command we are using is creating any problem? Please see this help:
http://www.computerhope.com/unix/umv.htm
Can you run by removing this -f and see? I have run the move command on my system which is windows server and it worked perfectly for me. I have physically logged in xi server and ran. This the command I have tested:
move xidfiles\inbound\clmin. xidfiles\outbound
This is my folder structure and files so dont worry with naming conventions. It worked for me and the end result is moving 11files which it find in inbound directory to outbound directory.
Did you get any errors in RWB --> communication channel monitoring for this?
Regards,
---Satish
Hi Venu,
Try like this:
mv -f /usr/sap/PI/Out/SAPOpenSalesOrder. /usr/sap/PI/In/
As raj mentioned I hope you are using this on NFS not on FTP. Also if possible try to run this command at OS level i.,e on the command prompt of XI box using Basis guys help.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>mv -f /usr/sap/PI/Out/SAPOpenSalesOrder. /usr/sap/PI/In
This doesnt work.
Try this...
cd /usr/sap/PI/Out
for ANYFILE in SAPOpenSalesOrder* ; do
echo "Found file: $ANYFILE "
mv -Eignore $ANYFILE /usr/sap/PI/In
done
Edited by: Praveen Gujjeti on Jun 25, 2010 9:44 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you doing FTP or NFS? OS Command in file channel can be used only for NFS.
Regards,
Neetesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
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.