<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Jon Miller wrote:<br>
<blockquote cite="mids398886a.020@mmtnetworks.com.au" type="cite">
  <pre wrap="">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
  </pre>
</blockquote>
used for setting variables<br>
<blockquote cite="mids398886a.020@mmtnetworks.com.au" type="cite">
  <pre wrap="">./backup1-functions
  </pre>
</blockquote>
means the script is in the current directory (this might not be the
case)<br>
<blockquote cite="mids398886a.020@mmtnetworks.com.au" type="cite">
  <pre wrap="">. ./backup1-functions
  </pre>
</blockquote>
a combination of both<br>
<blockquote cite="mids398886a.020@mmtnetworks.com.au" type="cite">
  <pre wrap="">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

  </pre>
</blockquote>
Sounds like the script is not located where you think it is - i.e. the
same directory as you are running "backup1.sh" from...<br>
<br>
Just a stab in the dark anyway.  It sounds like I'm stating the
obvious, so if there is nothing new in my answer, I'll leave it to the
rest of PLUG to tackle.<br>
<br>
I'm still fairly new to bash scripting and must admit, I haven't tried
a script from within a script yet...<br>
<br>
<div class="moz-signature">-- <br>
<title>Jonathan Young of PC-PHIX</title>
<meta http-equiv="Content-Type" content="text/html; ">
<meta http-equiv="Content-Language" content="en-us">
<meta name="Signature" content="Jonathan Young">
<meta name="Copyright" content="Copyright 1997 to 2004 PC-PHIX">
<font face="Verdana" size="2">
Jonathan Young<br>
Director of PC-PHIX<br>
<a class="moz-txt-link-abbreviated" href="mailto:jonathan@pcphix.com">jonathan@pcphix.com</a><br>
<br>
Phone: 0410 455 674<br>
Web: <a class="moz-txt-link-freetext" href="http://www.pcphix.com/">http://www.pcphix.com/</a><br>
<br>
</font> </div>
</body>
</html>