How to pass command line arguments to bash script when executing with at?
0
votes
2
answers
1982
views
I have a bash script needs run at a specific time and found out
at
is pretty much does what I need to do. But the problem is I'm not sure how can I pass command line arguments to the bash script through at
. Below command is what I finally ended up after looking through some other solutions.
echo "-f job.sh argument" | xargs at now + 2 minutes
But this does not work. Can anyone help me with this?
Asked by yash
(1 rep)
Jan 23, 2020, 06:34 PM
Last activity: Jul 21, 2025, 10:06 AM
Last activity: Jul 21, 2025, 10:06 AM