Menu

#69 OS 'at' nor 'crontab' seem to work?

1.0
open
2025-03-25
2025-03-25
No

First off, thank you for such a wonderful compilation of software and ISO images, I use them often, and have helped fuel my interest in SDR's for many years! The issue I am having is I cannot seem to get the Linux command 'at' nor 'crontab' to work correctly on the latest ISO image of Lubuntu. There are no errors when using the commands and it looks like they execute however, there is no output when even attempting to use the 'echo "hello world"' loopback command (on some tutorials). I have installed all the software needed. I have exhausted fixes that claimed to work on the internet and I am now asking for help. sudo, nor the normal user, can get the 'at' or 'crontab -e' commands to work. My goal is to call a python script from GNU radio at a given time to record some IQ data to a file then kill (-9 name) the process. I have created a shell script containing all of the paths and scripts, and when I execute the script from the command line it works perfectly, however I have no success when using 'at' or 'crontab' to execute it at a given time. I have looked in the sys logs to see if there was a syntax or permission error however, there seems to be no logs with any errors, and it seems to be OS related? Any help would be greatly appreciated!

Discussion

  • Cemaxecuter

    Cemaxecuter - 2025-03-25

    Good evening. I jumped on a brand new install of DragonOS Noble (typing this on it now).

    I opened up a terminal and typed crontab -e and picked my editor. After I added, saved, and closed
    * * * * * echo "Hello, World!" >> /home/dragon/helloworld.txt

    The above entry ran and I confirmed the text file existed with the content in it. I'm not as familiar with "at".

     
  • Cemaxecuter

    Cemaxecuter - 2025-03-25

    Also thank you for the kind words! I'll have to learn more about your setup I think to better understand what's happening. In the small test I completed just now, the crontab for my user ran correctly it seems.

     
  • Christopher Meyer

    Hi Cemaxecuter, thank you for the quick response. Interestingly, that same command line you used also worked for me as well, which is the first success I have had with crontab. Strangely, I have followed a few on-line videos and none were successful, until now. So I must be dealing with a specific syntax issue with Linux or something to that affect. At first I thought it was a permission or dynamic link issue, however you were able to get it to work, so I will take some time and figure out the syntax issue. The 'at' command is like crontab, but is used st the command line to perform actions one time, not reoccurring like crontab. I looked and I am running R27 of Dragon OS. Thanks again for the help, you showed me that my issue is not with the OS, but with some syntax I don't yet understand. Thanks again!

     

Log in to post a comment.

MongoDB Logo MongoDB