[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

cron error 127

Posted on 2011-09-08
2
Medium Priority
?
393 Views
Last Modified: 2013-12-23
my cron is giving me erro 127 while I try to run a script.

the system is HP-UX, the script is a simple make_tape_recovery command that Im able to run from shell.

anyone know if I have to setup something to make cron run this?

thanks
0
Comment
Question by:mistrider
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 36506677
Error 127 means "Command not found"

You'll have to specify the full path to your command, like

* * * * * /path/to/make_tape_recovery ... ...

Please remember that cron doesn't set any PATH except for /bin and /usr/bin!
So if there are commands inside your script you should also call them by full path.

wmp
0
 

Author Closing Comment

by:mistrider
ID: 36512422
missing path
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Tech spooks aren't just for those who are tech savvy, it also happens to those of us running a business. Check out the top tech spooks for business owners.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question