Page 1 of 1

upload and extract on the fly?

Posted: Sun Apr 01, 2007 12:29 am
by potato
Hey,

to install shoutcast on my server, i have to extract a specific file on the server.
this happens by tar -zxvf filename

but my file is still here on my desktop.
I know i can ftp this to the server, but isn't there a way to upload and extract it with one step?

Can somebody give me some information about this.

Thanx in advance.

with friendly greetings,
tom

Posted: Sun Apr 01, 2007 12:44 am
by Benjamin
Tom,

The linux server would need the entire file to extract it, which means the upload would need to complete first.

You could extract it, then upload it, but then the upload will most likely take quite a bit longer to complete.

Posted: Sun Apr 01, 2007 1:19 am
by potato
ok.
thanx for the reply.

I upload it by ftp then.

Posted: Mon Apr 02, 2007 10:13 am
by pickle
Uploading & unzipping are 2 different procedures - they can't be done in one atomic step. There's no reason you can't write an upload script that untars the file after it's uploaded though.