Hi,
I am logging to a linux server through a user "user1" in /home directory.
There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory.
When the script is added to crontab, on execution, the file gets created in /home/user1. (When manually the script is run from the directory, it works fine.)
I want the file to be created in the directory where the script exists. Could you please provide me a solution to this?
Thanks,
Archana