on 07-11-2009 12:22 AM
Hello,
Is it possible to use wildcards for HP-UX commands in SM69?
For example, I would think the following would work in HP-UX:
mv /directory/file_name.* /directory2
But whenever I execute a command with the * wildcard in SM69 I get the message 'No such file or directory'
Thanks,
Joel
Hi all,
in some Operating Systems Unix like, such as HP-UX and AIX, the use of widlcards in absolute paths has been disabled for security reasons.
So, if you have to copy all files from Directory /tmp/xxx/ to /tmp/yyy, you cannot use the command:
cp /tmp/xxx/* /tmp/yyy
If you are using a script, for Bash or Korn Shell for instance, try to 'navigate' the folders and perform local operations.
Example:
cd /tmp/XXX/
cp (asteriskDOTasterisk) /tmp/yyy
cd <your working directory>
Best Regards,
Antonio Longo
Edited by: indetony on Dec 14, 2009 3:24 PM
Edited by: indetony on Dec 15, 2009 11:20 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It exists. I can do a
ls /usr/afisinw_cpafiscd/WHSE/ready/portalActivityOld
in SM69 and see the contents.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try putting mv in the 'operating system command' field, and the rest of it in the 'parameters for operating system command' field? That works fine for me, with an * in the parameters field. Eg:
operating system command:
/usr/bin/rm
parameters for operating system command
/var/tmp/joe* /var/tmp/ixx*
Cheers,
David.
This is wierd, I can't even do 'ls *.TRC'
Here's another example, using absolute path names that didn't work:
mv /usr/afisinw_cpafiscd/WHSE/ready/portalActivity_311688752_1243622628104.* /usr/afisinw_cpafiscd/WHSE/ready/portalActivityOld
error: cannot access: No such file or directory External program terminated with exit code 1
But when I replace the * with txt it works. Unfortuneately I need to move multiple portalActivity files each time, and the beauty of using an external command is that my ABAP program is only a few lines long.
Could there be some sort of a safety feature in SAP to prevent the use of * in external commands?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
mv /usr/afisinw_cpafiscd/WHSE/ready/portalActivity_311688752_1243622628104.* /usr/afisinw_cpafiscd/WHSE/ready/portalActivityOld
error: cannot access: No such file or directory External program terminated with exit code 1
Create portalActivityOld directory if it doesnot exists in /usr/afisinw_cpafiscd/WHSE/ready and then try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
mv /directory/file_name.* /directory2
Please try with the absolute path names.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Check this out
[Link1|http://help.sap.com/saphelp_45b/helpdata/EN/fa/097215543b11d1898e0000e8322d00/frameset.htm]
Regards
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.