shell - Script file that executes other scripts -
how make script file executes other scripts line line? have multiple scripts need executed in correct order work
you can have scripts execute in order chaining command &&
&&
makes sure first command has completed before moving onto other sin chains. opposed &
execute them if prior ones fail.
- first.sh echoes first
- second.sh echoes second
command
sh first.sh && sh second.sh
output
i first second
you can tie cron job if wish have execute @ certains times etc.
Comments
Post a Comment