Corntab to run a script on last working day of the month
how to make a Crontab to run a script on the last working day of the month.
|
Quote:
In any case, this kind of complex requirement should be handled inside your script rather than crontab. |
Why AT Command or crontab isn't running
Why AT Command or crontab isn't running in Linux? Whenever I tried to create its showing some "packages needed", display "sudo apt-get install <deb>"
So what to do to run AT or cronjob. |
Something is wrong with your installation, I guess, but your description is not sufficient to help you.
Can you tell us the precise command that you enter, and the precise error message? Also which distro you are using. |
Crontab to make directory in Desktop
why cronjob is not working for the below command.
my current location is "desktop" touch a.sh created a.sh file vi a.sh mkdir abcd/ a.sh content command a.sh crontab -e * * * * * /subir/home/Desktop/a.sh cronatab install. but not make any directory after 1 min. |
crontab has no any idea about your current location. Crontab has its own very special environment.
|
Why crontab doesn't create file on Desktop
I tried command like
* * * * * mkdir new /home/subir/Desktop But it create "new" directory in my home directory. How to do that On desktop? |
See the man page: man mkdir for the correct syntax to create a directory.
Code:
SYNOPSIS Why do you want to run that command from cron? And why do you want to run it every minute? |
As above, think of cron as a user trying to do a task.
|
Crontab not working at specific time
My command is Cat > a.sh
mkdir abc Crontab -e 56 09 * * * /home/subir/Jarvis/a.sh Doesn't create abc directory at that given time |
Quote:
Reported. |
Opening a new thread with the same question is contrary to the LQ Rules.
What about the answers here do you not understand? |
Quote:
|
Quote:
And, the -p option doesn't fix the fact that the OP is using incorrect syntax otherwise. Nor does it fix the fact that the OP has asked the question in multiple threads three or four different ways but has provided no followup. They've asked the question, received an answer, and then asked the question again in a new thread. (sigh) |
Yes but not necessarily in a clear way.
The command mkdir abc uses a relative path which is referenced to your current working directory. A absolute or full path is referenced to /. Since cron is not associated with the desktop or terminal window it does not have a current working directory. You should use the full desired path in your a.sh script. mkdir /home/subir/Desktop/abc Or whatever path you choose. |
@subir,
There were five threads started by you regarding your efforts with cron to perform a simple test activity. These have been merged with your original thread on this topic. Please refrain from opening multiple duplicate threads as you continue. |
All times are GMT -5. The time now is 08:49 PM. |