Linux Operating System (MOSC)

MOSC Banner

Cron job giving error while using usermgr utility

edited Nov 19, 2021 5:35AM in Linux Operating System (MOSC) 4 commentsAnswered

I have to generate list of users present in system daily. To automate this process i have scheduled a cron job that runs this script to extract userlist daily.

So this is my script a.sh and under this i have added :

usermgr -d $GLOBAL_DOMAIN -list > file.csv

In my crontab, i have added following syntax :

30 06 * * * /bin/sh /home/user/a.sh

Now when this cron jub run, it returns an error stating usermgr : command not found.


Can you help me understand why it's giving such error while executing command via cron when the same command works fine without cron.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center