environment with no path

Bello labs / Bash shell
May 31, 2010 at 04:23:13
Specs: Unix Linux
Could some one explain to me what the following requirement means.
"Script created should be able to run in an environment that does not include a path. (i.e. the environment provided by

I have created a script with #!/bin/sh -x in the first line and declared variables like tr="/usr/bin/tr"

Is this all i need to do. I need help understanding what "environment that does not include path mean". i even removed PATH by unset path

See More: environment with no path

Report •

May 31, 2010 at 22:29:10
My educated guess is that your instructor wants you to use a full path on each unix command you are using. Yes, unsetting the PATH command would ensures that your script runs without an environment.

But to be safe, if I were you, I would ask the instructor.

BTW, on most linux systems, the default cron PATH is set in the /etc/crontab file.

Report •

May 31, 2010 at 23:48:03
thanks for the reply, nails. I would also want to request you to have a look at another post of mine and give some feedback on what can be done. Your help is deeply appreciated. the link to the post is http://www.computing.net/answers/un...


Report •
Related Solutions

Ask Question