Re the "wait" part, it will wait.<div><br></div><div>Put it in the background, with a &, </div><div>and it won't of course.</div><div><br></div><div>    -- Bob</div><div><br><br><div class="gmail_quote">On Sun, Jul 18, 2010 at 3:45 PM,  <span dir="ltr"><<a href="mailto:topher@t1kdevelopment.com">topher@t1kdevelopment.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This is only kind of bash scripting help.  Mostly I need help referring to other programs properly.  Here's what I want to do.<br>

<br>
There's a new user on my machine, and I want to get a new wordpress package and unpack it in their dir.  Getting it is easy,<br>
wget <a href="http://wordpress.org/latest.tar.gz" target="_blank">http://wordpress.org/latest.tar.gz</a><br>
<br>
That would drop that tarball in the dir in which I'm running the script, right?  I'm ok with that.<br>
<br>
Since I don't have perms on the other user's account, I'll be running this script as root.<br>
<br>
So, once the file is in my home dir, I want to unpack it.  man tar tells me this should work:<br>
<br>
tar xvzf latest.tar.gz -C ~username/public_html<br>
<br>
Does that make sense?<br>
<br>
Then I can set permissions on that new stuff, and remove latest.tar.gz<br>
<br>
A couple questions:<br>
<br>
Will my script wait until my wget is done before trying to do the next thing, or should I pause for a while?<br>
<br>
Is -C the best way to unpack it in a remote dir, or is there a better way to specify a destination?<br>
<br>
<br>
<br>
Topher<br>
<br>
-- <br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
_______________________________________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org" target="_blank">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br>
</blockquote></div><br></div>
<br />-- 
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.