Sorry, I’m newbie to this "linux server" stuff.
so my command is something like this:
while true; do sleep 2; curl -F id="http://YOURDOMAIN" -F scrape=true -F access_token='YOURACCESSTOKEN' -F appID=FACEBOOKAPPID https://graph.facebook.com; done &
I want it to run infinitely on my ""Centos 8 server"" .
thanx in advance
2
Answers
Add your command to a script say cmd.sh and run it in background.
nohup sh cmd.sh &
Here,
& is for background run and nohup will store all the std out from the script running in the background.
Just use any text editor like vi/vim editor in your centos server to edit. Copy your command and paste into a file say cmd.sh using the editor and then run the nohup sh cmd.sh & command
If you don’t know about vi editor follow below command
Your std out wil be kn nohup.out file in the same directory