Page 1 of 1

How to write a unix condition

Posted: Thu Nov 20, 2008 11:02 am
by pradkumar
Hi

How to configure a condition to execute a sequence task only when there are rows in a file.

How to write a condition to execute a sequence task either when there are warning messages or when there are no warning messages in the preceding task.

Posted: Thu Nov 20, 2008 11:21 am
by chulett
Couple of options. You can execute the UNIX command "test -s" which returns true if the file exists and has a size greater than zero. You could then "not" that or handle that appropriately in your triggers, such that only an empty / zero byte file triggers the next process.

You could also use a generic routine that leverages the DSGetLinkInfo function with the DSJ.LINKROWCOUNT InfoType to check whatever link in the job is responsible for writing to that file to see if records went down that link. Provided, of course, there is a job creating the file.

Posted: Thu Nov 20, 2008 2:29 pm
by ray.wurlod
You do NOT edit your post to remove the original questions.

YELLOW CARD

Posted: Thu Nov 20, 2008 2:33 pm
by filename.txt
ray.wurlod wrote: YELLOW CARD ...
Whats this YELLOW CARD mean ?

Posted: Thu Nov 20, 2008 2:35 pm
by ray.wurlod
The same as it means in football (soccer) and many other sports. Do it again and there will be some form of sanction imposed.

Posted: Thu Nov 20, 2008 2:35 pm
by chulett
Why in the hell do something like that? :evil:

As to the filename question:

http://www.soccerhelp.com/Soccer_Tips_D ... html#cards

Posted: Thu Nov 20, 2008 2:41 pm
by filename.txt
I wish admin to edit the question(to get back the previous post) and warn the user.

The edit permissions should be taken off for the Questions after the Question gets replies, to avoid these kind of situations.

Posted: Thu Nov 20, 2008 2:44 pm
by ray.wurlod
I disagree. Sometimes it is needful to go back to correct spelling and so forth.

What really should happen is that pradkumar should re-edit the original post and reinstate the questions that ought never to have been removed, and apologize.

Otherwise we may have to start using pratkumar as his appellation. :wink:

Posted: Thu Nov 20, 2008 3:10 pm
by crouse
Is that some mountain range on the east coast?

Posted: Thu Nov 20, 2008 3:16 pm
by chulett
Apparently, more like the small mountain range you sit on. :wink:

Posted: Thu Nov 20, 2008 4:25 pm
by ray.wurlod
It's where you'll all live when the Mac vs PC wars are won.

Posted: Thu Nov 20, 2008 5:27 pm
by pradkumar
Oh my god.. I apologize for the mistake i have done.. i dont know how it happened actually i was trying to edit the post and something messed up.. sorry for that i will never do this again..

Thanks

Posted: Thu Nov 20, 2008 5:40 pm
by ray.wurlod
Forgiveness is yours.
:)

Posted: Thu Nov 20, 2008 5:43 pm
by pradkumar
Once again My Apology ... Ray Thanks for suggesting..