"Execute Command" stage in sequencer
Posted: Thu Feb 09, 2012 4:37 pm
Hi, thanks for reading.
Anyone know how to use this command in a "execute command" stage within a sequencer. Want to get the command to work then replace -print with delete so I can delete all empty files.
cd /directory_name|find . ! -size 0 -print
tried using 'cd' as the command and '/DStage_workfiles/iiwdev/Rejects|find . ! -size 0 -print' as the parameters. But it printed files from a different directory. Not results I expected. Any help is greatly appreciated.
here is the output
SeqRich_ErrFilesTest..JobControl (@cmdRemoveTriggerFile): Executed: cd /DStage_workfiles/iiwdev/Rejects|find . ! -size 0 -print
Reply=0
Output from command ====>
.
./&COMO&
./&COMO&/INSTALL
./&COMO&/PROJECT.UPGRAD
./&COMO&/PROJECT.UPGRAD/E
./&COMO&/SETUP.EXAMPLE1
./&COMO&/SETUP.EXAMPLE1/?
./&PH&
./&PH&/DSD.RUN_25405_15914_065632
./&PH&/DSD.RUN_26738_15927_242087
./&PH&/DSD.RUN_27493_15732_713615
./&PH&/DSD.RUN_28558_16020_018112
./&PH&/DSD.RUN_28773_15613_730682
./&PH&/DSD.RUN_28792_15591_553238
./&PH&/DSD.RUN_28807_15591_39
etc.....
Anyone know how to use this command in a "execute command" stage within a sequencer. Want to get the command to work then replace -print with delete so I can delete all empty files.
cd /directory_name|find . ! -size 0 -print
tried using 'cd' as the command and '/DStage_workfiles/iiwdev/Rejects|find . ! -size 0 -print' as the parameters. But it printed files from a different directory. Not results I expected. Any help is greatly appreciated.
here is the output
SeqRich_ErrFilesTest..JobControl (@cmdRemoveTriggerFile): Executed: cd /DStage_workfiles/iiwdev/Rejects|find . ! -size 0 -print
Reply=0
Output from command ====>
.
./&COMO&
./&COMO&/INSTALL
./&COMO&/PROJECT.UPGRAD
./&COMO&/PROJECT.UPGRAD/E
./&COMO&/SETUP.EXAMPLE1
./&COMO&/SETUP.EXAMPLE1/?
./&PH&
./&PH&/DSD.RUN_25405_15914_065632
./&PH&/DSD.RUN_26738_15927_242087
./&PH&/DSD.RUN_27493_15732_713615
./&PH&/DSD.RUN_28558_16020_018112
./&PH&/DSD.RUN_28773_15613_730682
./&PH&/DSD.RUN_28792_15591_553238
./&PH&/DSD.RUN_28807_15591_39
etc.....