Examples to make "at" work  [Solved]

Message
Author
User avatar
baldyeti
Posts: 730
Joined: Sat Dec 05, 2009 3:37 pm

Re: Examples to make "at" work

#11 Post by baldyeti »

Does your command actually work from a terminal ? "WiFimodem-Con_name"" looks like such a generic name ...

Otherwise you can capture the command output/error to try and see why it failed

Code: Select all

echo 'mycommand >/tmp/atcmd.log 2>&1' | at 12:34
Then after the specified time check the content of the log file.

Jakob77
Posts: 661
Joined: Thu Feb 09, 2023 3:09 am

Re: Examples to make "at" work

#12 Post by Jakob77 »

baldyeti wrote: Sat Dec 30, 2023 6:30 am Does your command actually work from a terminal ? "WiFimodem-Con_name"" looks like such a generic name ...

Otherwise you can capture the command output/error to try and see why it failed

Code: Select all

echo 'mycommand >/tmp/atcmd.log 2>&1' | at 12:34
Then after the specified time check the content of the log file.
Thank you, I will look into that. :smile:

I changed the name for forum but the real name works from my Terminal and in scripts and it is used that way many times every day.






By the way I have found another command for "at" that I find useful because it can remove all at jobs that are planned:

Code: Select all

for i in `atq | awk '{print $1}'`;do atrm $i;done



And I believe I might be close to finding a smart way to make "at" run a daily cycle like I want it to.
It makes me dizzy and maybe I need to edit it later but I am so exited about the syntax I just have to share it.
When the time is 13:15 a job start that will set a job at 13:15 the following day:

Code: Select all

echo "DISPLAY=:0 echo sleep 100 && echo "DISPLAY=:0 testscript.sh" | at -M 13:15" | at -M 13:15

Jakob77
Posts: 661
Joined: Thu Feb 09, 2023 3:09 am

Re: Examples to make "at" work

#13 Post by Jakob77 »

Eadwine Rose wrote: Sat Dec 30, 2023 6:27 am And another example of letting someone else do the work for you. Be careful, because I have warned you before that this forum is not for your personal projects.
I am sorry I just completely don't understand.
It scares me you write about a 2. warning and I never understood anything about it. :-(
How can it be a personal project to make a peace of software work in MX, except if you choose to make it personal for personal reasons.?
You can say it is for me as a person but as I see it that goes for almost all forum questions from everybody about software. A person has a project small or big that gives him or her a problem that he or she want's help to solve.
So if you need to warn me about that, won't you also need to give a warning in almost every other subject where a user ask for help.?
To be honest it looks to me as an awful signal to send to the users.
Every time I install MX there comes up a text that tells me to come to forum with my ideas and questions, and without me there would not be any MX-Linux. Have you seen that text.?
I don't know what to believe anymore so please, before you warn me, explain to me what I do wrong, so I can understand it.

User avatar
j2mcgreg
Global Moderator
Posts: 7233
Joined: Tue Oct 23, 2007 12:04 pm

Re: Examples to make "at" work

#14 Post by j2mcgreg »

Jakob77 wrote: Sat Dec 30, 2023 9:10 am
Eadwine Rose wrote: Sat Dec 30, 2023 6:27 am And another example of letting someone else do the work for you. Be careful, because I have warned you before that this forum is not for your personal projects.
I am sorry I just completely don't understand.
It scares me you write about a 2. warning and I never understood anything about it. :-(
How can it be a personal project to make a peace of software work in MX, except if you choose to make it personal for personal reasons.?
You can say it is for me as a person but as I see it that goes for almost all forum questions from everybody about software. A person has a project small or big that gives him or her a problem that he or she want's help to solve.
So if you need to warn me about that, won't you also need to give a warning in almost every other subject where a user ask for help.?
To be honest it looks to me as an awful signal to send to the users.
Every time I install MX there comes up a text that tells me to come to forum with my ideas and questions, and without me there would not be any MX-Linux. Have you seen that text.?
I don't know what to believe anymore so please, before you warn me, explain to me what I do wrong, so I can understand it.
What you are not getting is that there is an expectation here (and on every other Linux forum) that the people asking questions will have researched their problems first and that the questions being asked are pertinent to the forums where they are posed. Questions on shell scripting are outside the scope of the MX Linux Forums but shell scripting is a basic skill that most Linux users should have in their arsenals. There are plenty of resources on the internet to teach you the ins and outs of shell scripting and had you done your research, you surely would have encountered them. For instance here is an article on the best six free courses on this subject:
https://medium.com/javarevisited/6-free ... 0461ecd4fe
Pick one of them and start learning.
Last edited by j2mcgreg on Sat Dec 30, 2023 10:10 am, edited 1 time in total.
Reason: it got posted by mistake before the comment was complete
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

Jakob77
Posts: 661
Joined: Thu Feb 09, 2023 3:09 am

Re: Examples to make "at" work

#15 Post by Jakob77 »

baldyeti wrote: Sat Dec 30, 2023 6:30 am you can capture the command output/error to try and see why it failed

Code: Select all

echo 'mycommand >/tmp/atcmd.log 2>&1' | at 12:34
Then after the specified time check the content of the log file.

You understand what the topic is about, and I thank you again for the code.
The log file showed that it was about permissions.
I don't know if there are issues of vulnerability that should be considered but otherwise if someone runs into the same problem a possible solution can be found here:
https://forum.xfce.org/viewtopic.php?id=17173


--


DukeComposed

I wish we could have been allowed to fix it among each other like men without interference.
You have helped me before with some magnificent codes I will never forget.
Thank you for that again.

--

Eadwine Rose wrote: Sat Dec 30, 2023 6:27 am And another example of letting someone else do the work for you. Be careful, because I have warned you before that this forum is not for your personal projects.

I have been thinking a lot about this and you haven't answered my last post for you, so I am still hanging in the air.
I don't want to force anybody to answer, especially not when it is about my person like this, but I need to know for sure if it was "just" hard fish slaps to say happy Christmas eve and happy new year to me in a suppressing way, or if you are actually giving me official warnings according to the rules.?
If it is the first I think it is ugly but if it is the last it takes it to a completely other level for me.

--
j2mcgreg wrote: Sat Dec 30, 2023 9:58 am What you are not getting is that there is an expectation here (and on every other Linux forum) that the people asking questions will have researched their problems first and that the questions being asked are pertinent to the forums where they are posed. Questions on shell scripting are outside the scope of the MX Linux Forums but shell scripting is a basic skill that most Linux users should have in their arsenals. There are plenty of resources on the internet to teach you the ins and outs of shell scripting and had you done your research, you surely would have encountered them. For instance here is an article on the best six free courses on this subject:
https://medium.com/javarevisited/6-free ... 0461ecd4fe
Pick one of them and start learning.

I am afraid the only thing I have really failed to understand from you is this:
viewtopic.php?p=717216#p717216
When I look at the pattern and the hostility lately, and how good subjects about Linux are being locked it is confirmed to me that is what it is about, and you actually spoke for the whole administration. If so I have to find a way to live with it but I can only say I think it is very sad for both the users and for MX. And as I mentioned, it is also in strong contradiction to the MX install text.
I think you ought to make a corner somewhere in forum where the users are allowed to discuss their Linux ideas freely until their ears fall off. For some users (me included) a good discussion and sometimes even a bad one is the best way to learn about Linux. To me it is also a social event. I feel I am a part of an important movement with friends where discussions like love will bring us all and Linux up where we belong.

User avatar
j2mcgreg
Global Moderator
Posts: 7233
Joined: Tue Oct 23, 2007 12:04 pm

Re: Examples to make "at" work

#16 Post by j2mcgreg »

@Jakob77
Let me be succinct. We will not be changing this forum or MX in general to suit your whims.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

User avatar
Eadwine Rose
Administrator
Posts: 15288
Joined: Wed Jul 12, 2006 2:10 am

Re: Examples to make "at" work

#17 Post by Eadwine Rose »

And with that, I am closing this topic. Any further things can go via PM.
MX-23.6_x64 July 31 2023 * 6.1.0-39amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Locked

Return to “Software / Configuration”