[plug] calling a script within a script

Jon Miller jlmiller at mmtnetworks.com.au
Thu Dec 8 21:58:21 WST 2005


Tried the full path also and this did not work.  Yes it is a separate script, it's more like a library of functions that the main script is to run.

Thanks

>>> meyerri at westnet.com.au 8:35:20 pm 8/12/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

_______________________________________________
PLUG discussion list: plug at plug.org.au 
http://www.plug.org.au/mailman/listinfo/plug 
Committee e-mail: committee at plug.linux.org.au




More information about the plug mailing list