2

I need to run the following command in Red Hat Linux, but I don't have wget installed.

wget -q -O http://somepage/somefile.cgi | bash

What's the equivalent for curl?

1 Answer 1

2

This should do it.

curl -s http://somepage/somefile.cgi | sh

EDIT: removed -O: Not needed as it's piping to the bash, as @gravity's comment mentions.

1
  • Thanks for the help. I never saw your edit and your original answer didn't work. I ended up installing wget :p
    – Daniel
    Aug 20, 2015 at 3:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .