Sujet : Re: How many ways can you run a script?
De : lew.pitcher (at) *nospam* digitalfreehold.ca (Lew Pitcher)
Groupes : comp.os.linux.miscDate : 29. May 2024, 13:26:20
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v376tc$14a46$2@dont-email.me>
References : 1
User-Agent : Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
On Wed, 29 May 2024 19:15:34 +0800, Woozy Song wrote:
sh script
bash script
source script
taskset FF script
rsh localhost script
ssh localhost script
xterm -e script
nohup script
I know these are not all equivalent and may have idiosyncracies.
Any others?
Of course, these all use the compiled-language functions to
run scripts. So, let's include (the C API) lower-level functions:
system("script");
popen("script",...);
if (fork() == 0) execl("script",...); else wait(void);
HTH
-- Lew Pitcher"In Skills We Trust"