Page 1 of 1

Count of file

Posted: Tue Aug 05, 2008 4:45 am
by swerajan

Hi

I need to get the count of the file and then send a mail if a file contains data. i tried using the execute command in the sequencer to find if the file has data. [ -s filename ] how to proceed further to send a mail??

Posted: Tue Aug 05, 2008 5:20 am
by ray.wurlod
Welcome aboard.

Draw a link from the Execute Command activity to the Notification activity. On the Triggers tab of the Execute Command activity test the exit status of your command (the test command returns 0 or 1). This is available as an activity variable.