How to run perl script on Ubuntu
up vote
-2
down vote
favorite
How to run perl script on Ubuntu?
How to run this script
https://zwitterion.org/software/aggregate-cidr-addresses/
I’ve created the file aggregate-cidr-addresses as shown in the example.
I’ve copied the file from the server in the same directory
then I run as shown in the example
root@Ubuntu:~$ list-iana-reserved-ranges | aggregate-cidr-addresses
list-iana-reserved-ranges: ukaz ni bil najden (translate command not found)
aggregate-cidr-addresses: ukaz ni bil najden (translate command not found)
and also
root@Ubuntu:~$ perl list-iana-reserved-ranges | aggregate-cidr-addresses
Number found where operator expected at list-iana-reserved-ranges line 2, near "192.168.1.0"
(Missing semicolon on previous line?)
syntax error at list-iana-reserved-ranges line 2, near "192.168.1.0"
Execution of list-iana-reserved-ranges aborted due to compilation errors.
aggregate-cidr-addresses: ukaz ni bil najden (translate command not found)
I've got
command not found
How to run this properly?
perl ubuntu
add a comment |
up vote
-2
down vote
favorite
How to run perl script on Ubuntu?
How to run this script
https://zwitterion.org/software/aggregate-cidr-addresses/
I’ve created the file aggregate-cidr-addresses as shown in the example.
I’ve copied the file from the server in the same directory
then I run as shown in the example
root@Ubuntu:~$ list-iana-reserved-ranges | aggregate-cidr-addresses
list-iana-reserved-ranges: ukaz ni bil najden (translate command not found)
aggregate-cidr-addresses: ukaz ni bil najden (translate command not found)
and also
root@Ubuntu:~$ perl list-iana-reserved-ranges | aggregate-cidr-addresses
Number found where operator expected at list-iana-reserved-ranges line 2, near "192.168.1.0"
(Missing semicolon on previous line?)
syntax error at list-iana-reserved-ranges line 2, near "192.168.1.0"
Execution of list-iana-reserved-ranges aborted due to compilation errors.
aggregate-cidr-addresses: ukaz ni bil najden (translate command not found)
I've got
command not found
How to run this properly?
perl ubuntu
3
"Nothing worked" isn't real descriptive. What happened? Did you get an error message?
– Matt
Nov 11 at 9:03
2
Possible duplicate of How to run perl script from any where (any directory)
– cecil merrel aka bringrainfire
Nov 11 at 9:24
If an executable isn't in a directory in your path, you need to explicitly provide the path to it../list-iana-reserved-ranges
etc. That error when you tried running it directly through perl suggests it's not a perl program, btw...
– Shawn
Nov 11 at 9:52
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
How to run perl script on Ubuntu?
How to run this script
https://zwitterion.org/software/aggregate-cidr-addresses/
I’ve created the file aggregate-cidr-addresses as shown in the example.
I’ve copied the file from the server in the same directory
then I run as shown in the example
root@Ubuntu:~$ list-iana-reserved-ranges | aggregate-cidr-addresses
list-iana-reserved-ranges: ukaz ni bil najden (translate command not found)
aggregate-cidr-addresses: ukaz ni bil najden (translate command not found)
and also
root@Ubuntu:~$ perl list-iana-reserved-ranges | aggregate-cidr-addresses
Number found where operator expected at list-iana-reserved-ranges line 2, near "192.168.1.0"
(Missing semicolon on previous line?)
syntax error at list-iana-reserved-ranges line 2, near "192.168.1.0"
Execution of list-iana-reserved-ranges aborted due to compilation errors.
aggregate-cidr-addresses: ukaz ni bil najden (translate command not found)
I've got
command not found
How to run this properly?
perl ubuntu
How to run perl script on Ubuntu?
How to run this script
https://zwitterion.org/software/aggregate-cidr-addresses/
I’ve created the file aggregate-cidr-addresses as shown in the example.
I’ve copied the file from the server in the same directory
then I run as shown in the example
root@Ubuntu:~$ list-iana-reserved-ranges | aggregate-cidr-addresses
list-iana-reserved-ranges: ukaz ni bil najden (translate command not found)
aggregate-cidr-addresses: ukaz ni bil najden (translate command not found)
and also
root@Ubuntu:~$ perl list-iana-reserved-ranges | aggregate-cidr-addresses
Number found where operator expected at list-iana-reserved-ranges line 2, near "192.168.1.0"
(Missing semicolon on previous line?)
syntax error at list-iana-reserved-ranges line 2, near "192.168.1.0"
Execution of list-iana-reserved-ranges aborted due to compilation errors.
aggregate-cidr-addresses: ukaz ni bil najden (translate command not found)
I've got
command not found
How to run this properly?
perl ubuntu
perl ubuntu
edited Nov 11 at 9:28
asked Nov 11 at 9:01
Bostjan
24
24
3
"Nothing worked" isn't real descriptive. What happened? Did you get an error message?
– Matt
Nov 11 at 9:03
2
Possible duplicate of How to run perl script from any where (any directory)
– cecil merrel aka bringrainfire
Nov 11 at 9:24
If an executable isn't in a directory in your path, you need to explicitly provide the path to it../list-iana-reserved-ranges
etc. That error when you tried running it directly through perl suggests it's not a perl program, btw...
– Shawn
Nov 11 at 9:52
add a comment |
3
"Nothing worked" isn't real descriptive. What happened? Did you get an error message?
– Matt
Nov 11 at 9:03
2
Possible duplicate of How to run perl script from any where (any directory)
– cecil merrel aka bringrainfire
Nov 11 at 9:24
If an executable isn't in a directory in your path, you need to explicitly provide the path to it../list-iana-reserved-ranges
etc. That error when you tried running it directly through perl suggests it's not a perl program, btw...
– Shawn
Nov 11 at 9:52
3
3
"Nothing worked" isn't real descriptive. What happened? Did you get an error message?
– Matt
Nov 11 at 9:03
"Nothing worked" isn't real descriptive. What happened? Did you get an error message?
– Matt
Nov 11 at 9:03
2
2
Possible duplicate of How to run perl script from any where (any directory)
– cecil merrel aka bringrainfire
Nov 11 at 9:24
Possible duplicate of How to run perl script from any where (any directory)
– cecil merrel aka bringrainfire
Nov 11 at 9:24
If an executable isn't in a directory in your path, you need to explicitly provide the path to it.
./list-iana-reserved-ranges
etc. That error when you tried running it directly through perl suggests it's not a perl program, btw...– Shawn
Nov 11 at 9:52
If an executable isn't in a directory in your path, you need to explicitly provide the path to it.
./list-iana-reserved-ranges
etc. That error when you tried running it directly through perl suggests it's not a perl program, btw...– Shawn
Nov 11 at 9:52
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
To run a Perl script,
- put the interpreter in the first line of the files with a "shabang" or "hash bang" (
#!
), which the script you linked to already has:
#!/usr/bin/perl
- make the files executable:
chmod +x list-iana-reserved-ranges aggregate-cidr-addresses
- add
./
to the beginning of the filenames (this is a Linux security feature to not accidentally run scripts in your current directory):
./list-iana-reserved-ranges | ./aggregate-cidr-addresses
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
To run a Perl script,
- put the interpreter in the first line of the files with a "shabang" or "hash bang" (
#!
), which the script you linked to already has:
#!/usr/bin/perl
- make the files executable:
chmod +x list-iana-reserved-ranges aggregate-cidr-addresses
- add
./
to the beginning of the filenames (this is a Linux security feature to not accidentally run scripts in your current directory):
./list-iana-reserved-ranges | ./aggregate-cidr-addresses
add a comment |
up vote
1
down vote
To run a Perl script,
- put the interpreter in the first line of the files with a "shabang" or "hash bang" (
#!
), which the script you linked to already has:
#!/usr/bin/perl
- make the files executable:
chmod +x list-iana-reserved-ranges aggregate-cidr-addresses
- add
./
to the beginning of the filenames (this is a Linux security feature to not accidentally run scripts in your current directory):
./list-iana-reserved-ranges | ./aggregate-cidr-addresses
add a comment |
up vote
1
down vote
up vote
1
down vote
To run a Perl script,
- put the interpreter in the first line of the files with a "shabang" or "hash bang" (
#!
), which the script you linked to already has:
#!/usr/bin/perl
- make the files executable:
chmod +x list-iana-reserved-ranges aggregate-cidr-addresses
- add
./
to the beginning of the filenames (this is a Linux security feature to not accidentally run scripts in your current directory):
./list-iana-reserved-ranges | ./aggregate-cidr-addresses
To run a Perl script,
- put the interpreter in the first line of the files with a "shabang" or "hash bang" (
#!
), which the script you linked to already has:
#!/usr/bin/perl
- make the files executable:
chmod +x list-iana-reserved-ranges aggregate-cidr-addresses
- add
./
to the beginning of the filenames (this is a Linux security feature to not accidentally run scripts in your current directory):
./list-iana-reserved-ranges | ./aggregate-cidr-addresses
answered Nov 11 at 9:56
bitinerant
563
563
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247228%2fhow-to-run-perl-script-on-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
"Nothing worked" isn't real descriptive. What happened? Did you get an error message?
– Matt
Nov 11 at 9:03
2
Possible duplicate of How to run perl script from any where (any directory)
– cecil merrel aka bringrainfire
Nov 11 at 9:24
If an executable isn't in a directory in your path, you need to explicitly provide the path to it.
./list-iana-reserved-ranges
etc. That error when you tried running it directly through perl suggests it's not a perl program, btw...– Shawn
Nov 11 at 9:52