i am trying to use following commands in a shell script.. any suggestions to do it a correct way?
[root@testserver ~]# crontab -u oracle -e >> 0 0 * * * /usr/local/scrips/setup.sh crontab: usage error: no arguments permitted after this option Usage: crontab [options] file crontab [options] crontab -n [hostname] Options: -u <user> define user -e edit user's crontab -l list user's crontab -r delete user's crontab -i prompt before deleting -n <host> set host in cluster to run users' crontabs -c get host in cluster to run users' crontabs -s selinux context -x <mask> enable debugging Default operation is replace, per 1003.2
/var/spool/cron/crontabs/<username>it is the file opened withcrontab -uafaik