1833786 Members
2503 Online
110063 Solutions
New Discussion

Listener streaming....

 
SOLVED
Go to solution
Ramana.Sv
Frequent Advisor

Listener streaming....

Hi, iam stream the listener, so i write below line code into file and run this files using crontab, so its giving stream not found, when i run this file manualy its working fine, why?????


stream /usr/dsb/jobs/listener3101


Thank you,
8 REPLIES 8
Dave Hutton
Honored Contributor
Solution

Re: Listener streaming....

Being it works manually and doesn't work from cron I would think its an environment issue. Cron gives you a minimum environment.
whiteknight
Honored Contributor

Re: Listener streaming....

Ramana,

> stream /usr/dsb/jobs/listener3101

MPE command ? ;-)

WK
Problem never ends, you must know how to fix it
Ramana.Sv
Frequent Advisor

Re: Listener streaming....

MPE comand mean i am not getting....
Dennis Handly
Acclaimed Contributor

Re: Listener streaming....

>MPE comand mean i am not getting....

WK is trying to be funny. MPE/iX has a stream command which is like batch(1).
Gaurav_Goyal
New Member

Re: Listener streaming....

Hi ramana,

I feel you have to give full path for stream command in crontab file .

You can get Path for stream command from following command

#whereis stream
Ramana.Sv
Frequent Advisor

Re: Listener streaming....

Hi pls look it into below

India # whereis stream
stream: /usr/share/man/man2.Z/stream.2



iam using to stream the Listener command

files name vi test.sh in that files i use like this.

stream /usr/sbdc/jobs/listener31611


in cron tab iam using like this

15 5 * * * sh /hai/test.sh

so it geving error


Dennis Handly
Acclaimed Contributor

Re: Listener streaming....

># whereis stream
stream: /usr/share/man/man2.Z/stream.2

This means it can't find it.

>when i run this file manually its working fine, why?????

Most likely as Dave and Gaurav said, you must use absolute paths in your crontab because cron doesn't use your .profile. Or you must augment your $PATH.

If you run it manually and it works, try using:
# whence -v stream

If that doesn't find it, add that just before you invoke it in test.sh.

>stream /usr/sbdc/jobs/listener31611

The syntax above says that stream is a command, function or alias and the next parm is a file or some such string.
Mike Reaser
Advisor

Re: Listener streaming....

Ramana: You are attempting to use the suite of software, scripts and other intellectual property of Southeastern Data Cooperative, Inc http://www.sedata.com and should be contacting SEDC in Tucker, GA, USA, at phone 770-414-5357 for assistance.

Dennis: The SEDC suite of software includes many MPE emulations, including one of the MPE "STREAM" command that uses, at its heart, at(1) instead of batch or cron. :)