Solved

cron error 127

Posted on 2011-09-08
2
382 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
Connecting via HTTP / HTTPS 10 77
Network Tunnels 2 46
leap year shell script 10 48
Exchange 2016 4 58
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

737 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