How to make shell script run dynamically in background without typing on command line?background gui process in shell scriptTyping text from a shell scriptShell Script can't run man commandHow to handle sub-command line in shell script?Shell script - child - background processHow to run script multiple times from command line?Run shell script without showing all logshow to set and unset proxy dynamically through shell script?exit if background command fails in shell scriptHow to run my wallet script in background?

How does buying out courses with grant money work?

Method to test if a number is a perfect power?

Implement the Thanos sorting algorithm

Why not increase contact surface when reentering the atmosphere?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

How can a function with a hole (removable discontinuity) equal a function with no hole?

Why escape if the_content isnt?

Trouble understanding the speech of overseas colleagues

Is exact Kanji stroke length important?

Return the Closest Prime Number

Do the temporary hit points from the Battlerager barbarian's Reckless Abandon stack if I make multiple attacks on my turn?

How to Reset Passwords on Multiple Websites Easily?

How to pronounce the slash sign

Why, precisely, is argon used in neutrino experiments?

Where does the Z80 processor start executing from?

How can I kill an app using Terminal?

A Rare Riley Riddle

What happens if you roll doubles 3 times then land on "Go to jail?"

How do I extract a value from a time formatted value in excel?

Was Spock the First Vulcan in Starfleet?

Roman Numeral Treatment of Suspensions

Sort a list by elements of another list

Integer addition + constant, is it a group?

Arithmetic mean geometric mean inequality unclear



How to make shell script run dynamically in background without typing on command line?


background gui process in shell scriptTyping text from a shell scriptShell Script can't run man commandHow to handle sub-command line in shell script?Shell script - child - background processHow to run script multiple times from command line?Run shell script without showing all logshow to set and unset proxy dynamically through shell script?exit if background command fails in shell scriptHow to run my wallet script in background?













0















I am developing wab service on cardano-sl with php and therefore I've to write ./connect-to-mainnet on command line every time to connect RPC API. I've tried below commands:




  1. ./connect-to-mainnet &

  2. nohup stack exec -- ./connect-to-mainnet /dev/null 2>&1 &

But they all are temporary as will be terminated as PC shut down. I want to make script run dynamically as my php run on server.










share|improve this question









New contributor




user342515 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2





    How is the script supposed to run if the machine is turned off? Is there something I'm missing here?

    – Panki
    yesterday











  • yeah, I mean to say when i run php file the script will be run automatically

    – user342515
    yesterday











  • @user342515 it's unclear what you want to do. Do you want your php file to run when your webserver start or do you want it to run when your PC is starting ?

    – Kiwy
    yesterday











  • I want to run script dynamically when particular service URL(my project URL) is open in browser.

    – user342515
    22 hours ago















0















I am developing wab service on cardano-sl with php and therefore I've to write ./connect-to-mainnet on command line every time to connect RPC API. I've tried below commands:




  1. ./connect-to-mainnet &

  2. nohup stack exec -- ./connect-to-mainnet /dev/null 2>&1 &

But they all are temporary as will be terminated as PC shut down. I want to make script run dynamically as my php run on server.










share|improve this question









New contributor




user342515 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2





    How is the script supposed to run if the machine is turned off? Is there something I'm missing here?

    – Panki
    yesterday











  • yeah, I mean to say when i run php file the script will be run automatically

    – user342515
    yesterday











  • @user342515 it's unclear what you want to do. Do you want your php file to run when your webserver start or do you want it to run when your PC is starting ?

    – Kiwy
    yesterday











  • I want to run script dynamically when particular service URL(my project URL) is open in browser.

    – user342515
    22 hours ago













0












0








0








I am developing wab service on cardano-sl with php and therefore I've to write ./connect-to-mainnet on command line every time to connect RPC API. I've tried below commands:




  1. ./connect-to-mainnet &

  2. nohup stack exec -- ./connect-to-mainnet /dev/null 2>&1 &

But they all are temporary as will be terminated as PC shut down. I want to make script run dynamically as my php run on server.










share|improve this question









New contributor




user342515 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I am developing wab service on cardano-sl with php and therefore I've to write ./connect-to-mainnet on command line every time to connect RPC API. I've tried below commands:




  1. ./connect-to-mainnet &

  2. nohup stack exec -- ./connect-to-mainnet /dev/null 2>&1 &

But they all are temporary as will be terminated as PC shut down. I want to make script run dynamically as my php run on server.







shell-script






share|improve this question









New contributor




user342515 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




user342515 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday









Kusalananda

138k17258426




138k17258426






New contributor




user342515 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









user342515user342515

1




1




New contributor




user342515 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





user342515 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






user342515 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 2





    How is the script supposed to run if the machine is turned off? Is there something I'm missing here?

    – Panki
    yesterday











  • yeah, I mean to say when i run php file the script will be run automatically

    – user342515
    yesterday











  • @user342515 it's unclear what you want to do. Do you want your php file to run when your webserver start or do you want it to run when your PC is starting ?

    – Kiwy
    yesterday











  • I want to run script dynamically when particular service URL(my project URL) is open in browser.

    – user342515
    22 hours ago












  • 2





    How is the script supposed to run if the machine is turned off? Is there something I'm missing here?

    – Panki
    yesterday











  • yeah, I mean to say when i run php file the script will be run automatically

    – user342515
    yesterday











  • @user342515 it's unclear what you want to do. Do you want your php file to run when your webserver start or do you want it to run when your PC is starting ?

    – Kiwy
    yesterday











  • I want to run script dynamically when particular service URL(my project URL) is open in browser.

    – user342515
    22 hours ago







2




2





How is the script supposed to run if the machine is turned off? Is there something I'm missing here?

– Panki
yesterday





How is the script supposed to run if the machine is turned off? Is there something I'm missing here?

– Panki
yesterday













yeah, I mean to say when i run php file the script will be run automatically

– user342515
yesterday





yeah, I mean to say when i run php file the script will be run automatically

– user342515
yesterday













@user342515 it's unclear what you want to do. Do you want your php file to run when your webserver start or do you want it to run when your PC is starting ?

– Kiwy
yesterday





@user342515 it's unclear what you want to do. Do you want your php file to run when your webserver start or do you want it to run when your PC is starting ?

– Kiwy
yesterday













I want to run script dynamically when particular service URL(my project URL) is open in browser.

– user342515
22 hours ago





I want to run script dynamically when particular service URL(my project URL) is open in browser.

– user342515
22 hours ago










0






active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






user342515 is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f508714%2fhow-to-make-shell-script-run-dynamically-in-background-without-typing-on-command%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








user342515 is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















user342515 is a new contributor. Be nice, and check out our Code of Conduct.












user342515 is a new contributor. Be nice, and check out our Code of Conduct.











user342515 is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f508714%2fhow-to-make-shell-script-run-dynamically-in-background-without-typing-on-command%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.