[plug] calling a script within a script

Richard Meyer meyerri at westnet.com.au
Thu Dec 8 20:35:20 WST 2005


On Fri, 2005-12-09 at 11:22 +0800, Jon Miller wrote:
> Like to know how do I call a script (backup1-functions) within a script (backup1.sh).  Within the backup1-functions script there are other functions.  
> 
> Tried the following
> . backup1-functions
> ./backup1-functions
> . ./backup1-functions
> I get the same response:
> # ./backup1.sh
> ./backup1.sh: line 21: ./backup1-functions: No such file or directory
> ./backup1.sh: line 24: tar_backup: command not found
> ./backup1.sh: line 27: tar_verify: command not found
> 
> Thanks

Is it a separate script? If so, try ~/backup1-functions, or give the
full path. Who knows, it MAY work  ;-)

-- 
Richard Meyer <meyerri at westnet.com.au>
My Hovercraft is full of eels.
   --Monty Python's Flying Circus

Linux Counter user #306629




More information about the plug mailing list