Anyone familiar with automating #rstats scripts via #cron in the terminal? If so, could you help me with a question I have please?https://stackoverflow.com/questions/55547764/cron-not-executing-r-script-file …
-
Show this thread
-
Replying to @JimGrange
Been a long time since I used cron, but you could try making the output path fully qualified? /user/me/crontest/ etc There may be some ownership & env limitations to cron jobs iirc.
1 reply 0 retweets 1 like -
-
Replying to @o_guest @adskankster
Tried this and didn't seem to work. Thanks for the try!
2 replies 0 retweets 2 likes -
Replying to @JimGrange @o_guest
Sorry, I meant /home/username/.... but I'm guessing you knew that. If it's running as root, you could see if the file's appeared in the /root directory.
1 reply 0 retweets 2 likes -
Replying to @adskankster @JimGrange
Yeah, that's what I thought you meant
@adskankster and what I mean too. I really think you need to replace that tilde with the actual path you want to rule this out, if you haven't@JimGrange!1 reply 0 retweets 2 likes -
Replying to @o_guest @adskankster
Yeh still no joy. Thanks for trying to help out, though!
1 reply 0 retweets 1 like -
Replying to @JimGrange @adskankster
Have you tried with your username added? * * * * * USERNAME Rscript /path/to/script.R
1 reply 0 retweets 0 likes
See: https://serverfault.com/questions/352835/crontab-running-as-a-specific-user … Have you tried this?
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.