07-13-2006
pankaj,
i am talking of the user with which you are executing the script manually or for which you are using cron jobs.
go to that user's home path & search for a hidden file called " .profile" which sets users individual enviroment.
# ls -la .profile
check if this file is thr & if its thr ,just do what i wrote in last post.
/etc/profile is common for all users & is called first before executing users individual .profile.
normally every user on a system will have its own .profile.
btw,when u run this script manually ,does it generate log file & gives you the desired o/p?
regards
abhijeet
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All ,
We have few scripts which uses common environment/path setting variables.
Now instead of putting classpath , framework,java_home ..... etc. in all the script, can we make a file with all common settings which can be envoked by the scripts while running. If yes , say setting file is... (3 Replies)
Discussion started by: pankajkrmishra
3 Replies
2. UNIX for Dummies Questions & Answers
Regarding Cron job,
i want to execute a scriptevery 4 days once irrespective of a week or a month.
Is it possible?Any help (2 Replies)
Discussion started by: santho
2 Replies
3. UNIX for Dummies Questions & Answers
can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!!
Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies
4. UNIX for Dummies Questions & Answers
I created a php script i want to run as a cronjob.
Where or how can I locate the cronjob file to add my script ? (3 Replies)
Discussion started by: dannyd
3 Replies
5. Solaris
I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies
6. UNIX for Advanced & Expert Users
Hello,
Can anyone help me how to set any script as cron job. I have gone through all threads but not able to get the details. Appreciate your help.
I need to set test.pl to run on every Tuesday by 6am in the morning.
I do not the cron file which is defined.
Please help me out.
... (3 Replies)
Discussion started by: jam_prasanna
3 Replies
7. Solaris
Hi ,
I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility )
I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies
8. Shell Programming and Scripting
Hi
I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies
9. UNIX for Dummies Questions & Answers
How to schedule a cron job to run every other Monday.
Thanks in advance. (2 Replies)
Discussion started by: ITDev01
2 Replies
10. Shell Programming and Scripting
Hi,
1)
If some job supposed to run on 1st of every month at 7 AM
In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day?
2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct)
And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies
LEARN ABOUT REDHAT
install-mh
INSTALL-MH(8) [nmh-1.5] INSTALL-MH(8)
NAME
install-mh - initialize the nmh environment
SYNOPSIS
/usr/lib/mh/install-mh [-auto] [-check] [-version] [-help]
DESCRIPTION
Install-mh is the nmh program to create the initial setup for a first-time nmh user. Install-mh lives in two places for historical rea-
sons.
The -auto option does things as automatically as possible and makes install-mh less chatty.
The user is asked for the name of the directory that will be designated as the user's nmh directory. If this directory does not exist, the
user is asked if it should be created. Normally, this directory should be under the user's home directory, and has the default name of
``Mail''. Install-mh writes an initial .mh_profile for the user.
As with all nmh commands, install-mh first checks for the existence of the $MH environment variable since that gives the profile path if
set. If it isn't set, the $HOME environment variable is consulted to determine the user's home directory. If $HOME is not set, then the
/etc/passwd file is consulted.
When creating the users initial .mh_profile, install-mh will check for the existence of a global profile /etc/nmh/mh.profile. If found,
this will be used to initialize the new .mh_profile.
The -check option can be used to check whether or not nmh has been installed. This can be used by other programs to determine whether or
not nmh has been installed without their having to know the internals of nmh.
FILES
$HOME/.mh_profile The user profile
/etc/nmh/mh.profile Used to initialize user profile
PROFILE COMPONENTS
Path: To set the user's nmh directory
CONTEXT
With -auto, the current folder is changed to "inbox".
MH.6.8 11 June 2012 INSTALL-MH(8)