Re: (no subject)

From: Alexey Fadyushin (fab_at_s-tunnel.com)
Date: 03/31/04

  • Next message: Chris Purcell: "Re: Java Optimization on RHEL"
    Date: Wed, 31 Mar 2004 17:16:07 +0400
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    
    

    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@redhat.com?subject=unsubscribe
    > https://www.redhat.com/mailman/listinfo/redhat-list

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

  • Next message: Chris Purcell: "Re: Java Optimization on RHEL"

    Relevant Pages

    • Re: Linux Command: time NO OUTPUT POSSIBLE
      ... By creating the new bash it has worked. ... But I want to execute it automaticall and therefore I have decided to ... I don't have any objection to using the GNU time program (in fact I ... The previous line says that when you execute your script (i.e., ...
      (comp.os.linux.setup)
    • Re: [ Attn: Randy ] Ad-hoc Parsing?
      ... > 1) They were out of context quotes, as the quotes came with no context. ... embed cpu instructions within a DOS/Windows batch script. ... that this also is possible with bash scripts. ... statement "It can execute the .com file as easily as a command.com ...
      (alt.lang.asm)
    • Re: [opensuse] Editting PATH variable
      ... SuSEconfig script ... ... not knowing what you options you used to install ... If your unfamiliar with Bash a good book is 'Learning the Bash Shell' by ... For Java use editing the PATH variable is NOT required... ...
      (SuSE)
    • Re: Command Line Interface
      ... >> should accept system commands only for an administrator. ... >> how should I supress the bash shell and launch my custom CLI ... > The script could run in a restricted shell and offer a menu of ... account, and either 1) change account password, 2) ...
      (comp.os.linux.misc)
    • Re: Passing shell variable as command line argument to expect
      ... I have a shell script in BASH, ... I called an expect script from this shell script. ... mentioned in the variable $var. ...
      (comp.lang.tcl)