LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2003, 11:33 PM   #1
masiarek
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
Hello program on RedHat


I have RedHat 8 installed with Perl 5.8.
I've used Perl on windows before.
What am I doing incorrectly?
I run my test.pl program and I see no output.

Here is my program:
#!/usr/bin/perl
print "hello\n";

I run command chmod 755 a.pl

than I run

/home/myid/hello_world.pl

...and nothing happens - I am back at my prompt...

Any advise?
thanks
adam

Last edited by masiarek; 10-10-2003 at 11:36 PM.
 
Old 10-10-2003, 11:54 PM   #2
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Quote:
I run command chmod 755 a.pl
..shouldnt it be
I run command chmod 755 hello_world.pl ??
 
Old 10-10-2003, 11:56 PM   #3
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
sorry, I have no experience of perl..but that looks like a problem
 
Old 10-11-2003, 12:03 AM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
try perl /home/yourid/hello_world.pl
 
Old 10-11-2003, 12:04 AM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
this should filter it throgh the perl interpreter
 
Old 10-11-2003, 12:06 AM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
yup, just tried it, it works
 
Old 10-11-2003, 12:23 AM   #7
masiarek
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
1) Jatt_thugz: you are right - I made a mistake.
It should be "chmod 755 hello_world.pl"

2) perl /home/yourid/hello_world.pl
does not help either

very strange...
 
Old 10-11-2003, 12:24 AM   #8
masiarek
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
perl works just fine when I use
perl -e ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Redhat 9 'up2date' program always crashes! mindfestival Linux - Software 5 04-05-2004 01:10 PM
how should i compile the C program on Redhat 9.0 harun_acs Programming 1 03-17-2004 08:25 AM
uninstalling a program from redhat 9 PionexUser Linux - Newbie 1 08-25-2003 10:34 PM
What FTP server program does Redhat 9 use? gsmonk Linux - Networking 2 07-21-2003 08:33 AM
Wanted: Backup program for Redhat 9.0 cbjhawks Linux - Software 5 07-13-2003 05:47 PM


All times are GMT -5. The time now is 12:22 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration