at

Vincenzo39010

New Member
Joined
May 4, 2022
Messages
4
Reaction score
1
Credits
31
Hi everyone, I'm trying to use the at command to run a script at a certain time, inside the script I entered the xdotool command to make the mouse do things .... but it doesn't work .. instead if I use commands like ls> text it works
Can you tell me where I am wrong, the sh file is a simple text file with the executable entry checked, with the simple command in the shell it works
Thanks
 


Can you provide your script?

The "at" syntax is generally executed like
Code:
 echo myscript | at <time definition>
where the command to be executed is piped to at.
 
Last edited:
clearly I renamed it to make it load, yes yes I did exactly as you wrote but it does nothing

i don't understand why it doesn't work, i have lubuntu 22.04
or another program that expects to run at a certain time
 

Attachments

  • test.txt
    199 bytes · Views: 187
Last edited:
Apparently I am not so smart as to be able to answer your question. I suspect the at command disconnects the job from the tty, and the script somehow needs to be able to reconnect to the appropriate tty. But I was unable to get it to work.
 
Is your test.txt file set whith executable permissions? I.E. chmod 755 test.txt Then try it again.
 
@Vicenzo39010 -- do you have the service cron start up at boot?
 
I found a script that checks the time every 60 minutes, so I solved it

thanks anyway, I also tried cron but it doesn't work, ...,.
 


Top