pmcmicha
Technical User
- May 25, 2000
- 353
I am getting the following error when attempting to use crontab in this manner on one of the servers I use:
su ${LOGIN} -c "crontab -l > ${DIR}/${FILE}"
UX:crontab: ERROR: Cannot determine current directory.
This is not a problem on any of our other servers which are configured the same. I did find that if I use the following syntax, this does not happen:
su - ${LOGIN} -c "crontab -l > ${DIR}/${FILE}"
I have verified ownership/permissions of /usr/bin/crontab as well as file size and its correpsonding sum value which all match our other servers. I checked SCO's site for anything that might pertain to this issue, but I did not find anything. Does anyone else have any ideas about this?
Thanks in advance.
su ${LOGIN} -c "crontab -l > ${DIR}/${FILE}"
UX:crontab: ERROR: Cannot determine current directory.
This is not a problem on any of our other servers which are configured the same. I did find that if I use the following syntax, this does not happen:
su - ${LOGIN} -c "crontab -l > ${DIR}/${FILE}"
I have verified ownership/permissions of /usr/bin/crontab as well as file size and its correpsonding sum value which all match our other servers. I checked SCO's site for anything that might pertain to this issue, but I did not find anything. Does anyone else have any ideas about this?
Thanks in advance.