Juniper / juise

juise is the JUNOS User Interface Script Environment, which allows users to develop, test, and execute script outside of JUNOS. For more information about juise, see:
https://github.com/Juniper/juise/wiki
Other
53 stars 15 forks source link

Error run JSNAP by crontab #36

Closed ngocthach closed 8 years ago

ngocthach commented 8 years ago

Dear all, I use JSNAP to check some divices, I set crontab to run script

Log: which: no juise in (/usr/bin:/bin) ERROR: could not find 'juise' in your PATH

But I check PATH. It's ok

which juise

/usr/jawa/bin/juise

Thank for your reply

philshafer commented 8 years ago

I’m guessing your cron job is running with a different PATH than your normal shell. Try using a full path in your crontab entry.

Thanks, Phil

On Sep 19, 2016, at 12:40 AM, ngocthach notifications@github.com wrote:

Dear all, I use JSNAP to check some divices, I set crontab to run script

Log: which: no juise in (/usr/bin:/bin) ERROR: could not find 'juise' in your PATH

But I check PATH. It's ok

which juise

/usr/jawa/bin/juise

Thank for your reply

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Juniper/juise/issues/36, or mute the thread https://github.com/notifications/unsubscribe-auth/ACLkOJGbj9329X5hViizdH95hBXhy_Taks5qrhJJgaJpZM4KAIai.

ngocthach commented 8 years ago

Hi @philshafer , Thanks for your help I have fix this problem, only edit path enviroment in jsnap file (which jsnap)

Thanks all