LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-16-2022, 02:07 AM   #16
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705

Quote:
Originally Posted by Skiddo View Post
i got it going.

i just need to get this to work now

Code:
    wget "$(basename ${link})" "${link}" | unzip -P 12345 \*.zip | s3cmd put -P *.qcow2 s3://image-bucket
That line makes no sense. The "|" is a pipe it reads stdout from the command to its left and feeds it to stdin of the command on the right.
But the commands you are using are neither writing to stdout or reading from stdin.

That is what pan64 was hinting at.

Evo2.

Last edited by evo2; 06-16-2022 at 02:09 AM.
 
Old 06-17-2022, 07:18 AM   #17
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,786

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
Quote:
Originally Posted by Skiddo View Post
Code:
    wget "$(basename ${link})" "${link}" | unzip -P 12345 \*.zip | s3cmd put -P *.qcow2 s3://image-bucket
rm *
What's with the backslash in \*.zip? Is the filename literally an asterisk?

Also, I'd be careful with that rm *, you might end up deleting your script...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A noob in need is a noob indeed Ryuji Yamazaki *BSD 3 10-28-2004 08:19 PM
noob with a noob question phoonerorlater Linux - Newbie 2 09-29-2004 03:43 PM
3 Noob Quetions From A Noob DaveyB Slackware 20 08-11-2004 08:00 PM
Firewall help (noob really really huge noob) ProtoformX Linux - Networking 1 03-29-2004 12:19 AM
Complete noob question from a noob noob_hampster Linux - Software 2 09-04-2003 12:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration