Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

How to run the perl script in Linux?

Status
Not open for further replies.

ashi

Member level 4
Joined
Jan 26, 2006
Messages
77
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Egypt
Activity points
1,908
How to run perl script?

can any one show me how to run perl script in linux
 

ghbolivar

Full Member level 1
Joined
Jul 25, 2001
Messages
98
Helped
7
Reputation
14
Reaction score
0
Trophy points
1,286
Activity points
766
Re: How to run perl script?

change mode in the terminal (console)
1. $ chmod 755 script.pl
2. $./script.pl

enjoy
 

    ashi

    points: 2
    Helpful Answer Positive Rating

ashi

Member level 4
Joined
Jan 26, 2006
Messages
77
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Egypt
Activity points
1,908
Re: How to run perl script?

I tried what you said ghbolivar but it didn't work
 

sundeep4u

Newbie level 5
Joined
Feb 13, 2006
Messages
8
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,332
How to run perl script?

have perl is proparely installed in system?
to check is it installled or n't type "perl" in console if it show's no command found then verify u'r perl path.
 

gliss

Advanced Member level 2
Joined
Apr 22, 2005
Messages
692
Helped
75
Reputation
150
Reaction score
16
Trophy points
1,298
Activity points
5,892
Re: How to run perl script?

Find out where Perl is installed on your system and put

#!/usr/bin/perl

In the first like of the perl script.
 

communicator

Newbie level 3
Joined
Nov 10, 2004
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
30
Re: How to run perl script?

You can check where it is installed by typing:
$ which perl
/usr/opt/bin/perl

then you can add it to your path and run file using:
$ perl filename

or add the the line gliss send to the script and run it by executing script
$ ./filename
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top