Getting Perl err.msg when I login?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Getting Perl err.msg when I login?
# 1  
Old 10-03-2013
Getting Perl err.msg when I login?

Hi, When I login to system. root or any of the user, I get Perl error message. Please advise....


When I login as a user.... I get this err.msg.
Code:
Terminal type is vt100
You have new mail.
bash: /usr/local/bin/perl: cannot execute binary file

when I login as root.

Code:
Terminal type is vt100
You have new mail.
/usr/local/bin/perl: syntax error at line 1: `(' unexpected
root@djx1

Code:
 
-rwxr-xr-x   2 root     root       20284 Sep  6  2006 perl
root@djx1#file perl
perl:           ELF 64-bit LSB executable
root@djx1#pwd
/var/opt/K/SCO/Unix/5.0.6Ga/usr/local/bin

Code:
 
perl -v
This is perl, v5.6.0 built for i486-pc-sco3.2v5.0
Copyright 1987-2000, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at Perl.com, the Perl Home Page.

# 2  
Old 10-03-2013
There is something in /etc/profile or ~/.profile or some other login script(which file, depends on which shell) which is trying to run a perl script when you login. You need to look at these files to find out what.

I don't believe it's a problem with perl itself, per se, but whatever's trying to use it.

Last edited by Corona688; 10-03-2013 at 12:08 PM..
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 10-03-2013
Thank you so much. Yes. /etc/profile was the problem.
This User Gave Thanks to samnyc For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Python/Perl script for auto login

I am loooking for a python/perl script which can login to gmail or any mail accounts and open a browser with the logged in page. I am trying this in a windows environment. I tried many docs available over internet an nothing seems to be working. (4 Replies)
Discussion started by: Tuxidow
4 Replies

2. Shell Programming and Scripting

Net::SSH::Perl slow to login.

I have some sample code that's supposed to ssh to another machine using Net::SSH::Perl, execute a command, and print the output of that command. It's very basic, and it works. However, I noticed that upon logging in: $ssh->login('username','password'); It takes roughly 10-13 seconds to... (2 Replies)
Discussion started by: mrwatkin
2 Replies

3. Shell Programming and Scripting

Perl ssh2 login issue.

Hi Experts, I came across this interesting situation. I have following ssh script login to multiple server. This works fine for one set of servers (linux) but on my sun boxes i am getting. error #!/usr/bin/perl -w use Net::SSH::Perl; use POSIX; use Term::ANSIColor qw(:constants); use... (2 Replies)
Discussion started by: mtomar
2 Replies

4. Shell Programming and Scripting

Login using perl LWP module

Hi, Could some one tell me how to login to any web site and get that page using perl LWP. I heard that we can login to the site using LWP. I dont want to use WWW:Mechanize as I dont have that module installed on the server. Appreciate your early response. Thanks... (8 Replies)
Discussion started by: Anjan1
8 Replies

5. Shell Programming and Scripting

Remote Login error in Perl

Hi, This is in PERL. I am trying to remotely login to a server to access and grep a log file. This is what I have defined in my Hash %servers = ('box1' => 'userid1', 'box2' => 'userid2', 'box3' => 'userid3', 'box4' => 'userid4'); %log = ('box1' => ... (1 Reply)
Discussion started by: nurani
1 Replies

6. Shell Programming and Scripting

login in wincvs thorugh shell or perl script

Hi , I am trying to write a script which does the wincvs login and does some checkout operations. When i do it from command prompt with command wincvs -d :pserver:username@server:/cvs/repository it pops up a cvs window and i can do some operations there. I wanted to automate this through... (1 Reply)
Discussion started by: namishtiwari
1 Replies

7. Shell Programming and Scripting

Getting err with 'awk' command

Hi All, I am trying to run the below cmd thro' a script. awk 'NR>=48&&NR<=(58-1)' $IN_FILE_NAME | tee $OUT_FILE_NAME but I am getting an err while running the script. It gives the below err msg : awk: syntax error near line 1 awk: bailing out near line 1 (P.S Note: When run the... (6 Replies)
Discussion started by: askumarece
6 Replies

8. Shell Programming and Scripting

How can i use system users in perl for login page

Hi, I want to code a script with perl. For this, I need some knowledge. How can i use system user name(with group) and password in my login page? I will be happy if you can help me (2 Replies)
Discussion started by: tahsinaltay
2 Replies

9. Shell Programming and Scripting

Perl website login and session

Hi, I'm currently working on a perl website, and I would need a system where a few users can login into the administration side of the site. about 5-10 users maximum, all pretty simple. I was thinking of using an .htaccess file and a seperate admin folder on the server. I'm wondering if there... (2 Replies)
Discussion started by: LNC
2 Replies

10. Shell Programming and Scripting

Login to a remote solaris machine as superuser through perl

I am trying to write a perl script that will do remote machine. I have done user loging using simple command; $telnet->login('test', 'test123'); But now I want to do root login or superuser login. So I tried the superuser command, $telnet->cmd("su"); But I am not able to send the... (0 Replies)
Discussion started by: james2
0 Replies
Login or Register to Ask a Question