upload and extract on the fly?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
potato
Forum Contributor
Posts: 192
Joined: Tue Mar 16, 2004 8:30 am
Location: my lovely trailer, next to the big tree

upload and extract on the fly?

Post 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
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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.
User avatar
potato
Forum Contributor
Posts: 192
Joined: Tue Mar 16, 2004 8:30 am
Location: my lovely trailer, next to the big tree

Post by potato »

ok.
thanx for the reply.

I upload it by ftp then.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply