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
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 » Sun Apr 01, 2007 12:29 am
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
Benjamin
Site Administrator
Posts: 6935 Joined: Sun May 19, 2002 10:24 pm
Post
by Benjamin » Sun Apr 01, 2007 12:44 am
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.
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 » Sun Apr 01, 2007 1:19 am
ok.
thanx for the reply.
I upload it by ftp then.
pickle
Briney Mod
Posts: 6445 Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:
Post
by pickle » Mon Apr 02, 2007 10:13 am
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.