Skip to Content
Former Member
Jul 25, 2008 at 08:45 PM

Rename a File on UNIX/LINUX



I have a job running daily to create a file on Unix. I need to rename the file with spaces in the name ie. "outfile" to "out file".

I can execute the command directly on linux successfully. ie.

mv outfile "out file"

So, created the OS command on SM49, but when it seems that the system does not recognize the space and i get the following error when i call the command with the function SXPG_CALL_SYSTEM:

mv: when moving multiple files, last argument must be a directory

any suggestions?