You are not logged in.
Pages: 1
Hi guys, i need to install the program "get"... do you know in which package is?
If i try "man get" i can find the manual, but there isn't the program.
Offline
Offline
You'll need to be more specific with which program you are trying to locate and its intended use. If the error is a "generic get" failure then that may be referring to GNU Wget:
http://www.gnu.org/software/wget/
Or other than that it might be a specialized component of another package. No one can help you without further information from yourself.
Offline
Not a Sysadmin issue, moving to NC...
Offline
You'll need to be more specific with which program you are trying to locate and its intended use. If the error is a "generic get" failure then that may be referring to GNU Wget:
http://www.gnu.org/software/wget/
Or other than that it might be a specialized component of another package. No one can help you without further information from yourself.
Sorry, i have to run a script where there is
#
# get external and cached IP addresses
#
$extip = get("http://api.externalip.net/ip/"); # Fetch current IP from whatismyip
die "Failed to get IP" unless $extip; # If IP wasn't acquired, go poofthe script fails on the row where is get, so i tried to execute get("http://api.externalip.net/ip/") on my console.... and the result is
[user@host ~]$ get("http://api.externalip.net/ip/")
bash: syntax error near unexpected token `"http://api.externalip.net/ip/"'but if i try
[user@host ~]$ get
bash: get: command not foundOffline
Looks like a function call to me.
Either the script is incomplete, or it or the environment sources a library of script functions that you're missing?
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Most probably you are missing some Perl libraries, specifically LWP::Simple.
[ github ]
Offline
Looks like a function call to me.
Either the script is incomplete, or it or the environment sources a library of script functions that you're missing?
The script is a perl script, maybe i've missed a library??
Offline
Ask whoever wrote the script.
Or just use curl instead.
Offline
Perl, of course. I thought I didn't recognise "unless". ![]()
Active Build's probably got it.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Most probably you are missing some Perl libraries, specifically LWP::Simple.
LWP::Simple is in https://www.archlinux.org/packages/extr … www/files/ but is already installed in my box...
Offline
Those are perl commands, but you don't invoke a perl interpreter. The error is clear - it says it is a bash syntax error - you are using a bash interpreter.
That can't be the full script, right - there is no shebang defining the interpreter, so how do you execute it at all? Either you specific the interpreter when you call it and you are specifying the wrong one, or it fails to execute because you can't execute a shebang-less text file.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
You should probably post the whole script, but IIRC it will need
use LWP::Simple;to er, use it.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
The very first line of the file must be a she-bang that points at your PERL interpreter:
http://en.wikipedia.org/wiki/Shebang_(Unix)
As Trilby stated. Then as skanky stated you'll, now in PERL, probably need a use statement to get the get statement in your script.
Offline
Pages: 1