ksh - How can I execute a script on AIX after my own .profile/.kshrc takes effect? -


background: colleagues , login aix server user "root", after login loads .profile/.kshrc/.netrc etc., start work, execute own shell scripts.

problem: when crontab script, fail because cmds in defined in own environment. failure remains add sentences of source .profile/.kshrc/.netrc in script. appears can not remember former system setting.

question: how can edit script task ran on own environment?

a script run cron should set own path assure it's starting known situation.

make inventory of external commands used script, list directories live, add line top of script:

path=/first/dir:/second/dir 

etc...

in case want include /usr/bin and/or /bin -- scripts run root /usr/sbin favourite.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -