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?
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:
./connect-to-mainnet &
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
New contributor
add a comment |
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:
./connect-to-mainnet &
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
New contributor
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 yourphp
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
add a comment |
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:
./connect-to-mainnet &
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
New contributor
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:
./connect-to-mainnet &
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
shell-script
New contributor
New contributor
edited yesterday
Kusalananda♦
138k17258426
138k17258426
New contributor
asked yesterday
user342515user342515
1
1
New contributor
New contributor
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 yourphp
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
add a comment |
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 yourphp
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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