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
 


SlowCoder

Member
Joined
May 2, 2022
Messages
96
Reaction score
66
Credits
791
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:
OP
V

Vincenzo39010

New Member
Joined
May 4, 2022
Messages
4
Reaction score
1
Credits
31
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: 36
Last edited:

SlowCoder

Member
Joined
May 2, 2022
Messages
96
Reaction score
66
Credits
791
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.
 

Dart

Member
Joined
Jan 5, 2022
Messages
30
Reaction score
31
Credits
270
Is your test.txt file set whith executable permissions? I.E. chmod 755 test.txt Then try it again.
 

forester

Active Member
Joined
Mar 5, 2022
Messages
287
Reaction score
166
Credits
2,079
@Vicenzo39010 -- do you have the service cron start up at boot?
 
OP
V

Vincenzo39010

New Member
Joined
May 4, 2022
Messages
4
Reaction score
1
Credits
31
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, ...,.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top