Re: (no subject)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can call a script from another shell script like any other program,
if
thr script to be called has 'X' premission for you. First line of bash
script
usually is 
#!/bin/bash
(or another path if bash in your system is installed in some unusual
place).
Also, if you need to call a bash script from a bash shell script, you
can use
bash command '.' (dot) to call script (in this case the script will be
executed
within the same interpreter (bash) copy as calling script and you will
not need
execute prmission, read permission will be enough.
The bash script also could be called by including the string
bash <path_to_script_to_be_called>
into calling script. In this case the execute permission is not needed
too.

Alexey Fadyushin
Brainbench MVP for Linux
http://www.brainbench.com


Lucas Mattson wrote:
> 
> Is there a way to start a bash schript from whitin a shell script?
> 
> PremiДr! Reklam- och virusfri mail med enorm inbox. http://premiummail.spray.se
> 
>   ------------------------------------------------------------------------
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux