PERL: RHEL6 vs SCO Unix


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting PERL: RHEL6 vs SCO Unix
# 1  
Old 04-20-2012
PERL: RHEL6 vs SCO Unix

Does anyone know if the same perl command might behave differently on RedHat Ent. 6 vs SCO Openserver 6?

Specifically:
$SIG{ALRM} = \&timeout2;
alarm 30;

SCO PERL v5.8.7 built for i586-pc-sysv5
RHEL6 PERL v5.10.1 (*) built for x86_64-linux-thread-multi

We don't know for sure if our problem is related to the this, but it's a starting point. If the above code (Which works on SCO) might be flaky on RedHat or maybe require some slightly different syntax, etc., it at least gives us a direction for troubleshooting the issue.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Error UNIX: UNIX SCO release 5.05 system does not boot

UNIX sco release 5.05 system does not boot:cannot open device hd(40)/boot stage 1 boot failure: error loading hd(40)/bootWhat to do? (2 Replies)
Discussion started by: Joaoalpande
2 Replies

2. UNIX for Dummies Questions & Answers

New to SCO UNIX

Hello everyone and thanks for your help in advance. Iama Windows Server administrator/programmer that has inheirited a SCO Unix 5.07 server running legacy applications. My first thought was to install the Unix OS on a separate test environment. However, I am in need of the most basic information... (3 Replies)
Discussion started by: kmcnet
3 Replies

3. Shell Programming and Scripting

perl/unix: script in command line works but not in perl

so in unix this command works works and shows me a list of directories find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt but when i try running a perl script to run this command my $query = 'find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt';... (2 Replies)
Discussion started by: kpddong
2 Replies

4. SCO

load sco xenix and sco unix binary ?

Hi I have some sco xenix object, bin and archive files that operate in sco unix 5.0.7. I know that sco unix kernel can support sco xenix binary. I want to know how can I link xenix and unix archives together? (0 Replies)
Discussion started by: javad1_maroofi
0 Replies

5. UNIX for Dummies Questions & Answers

unix system v release 3.2 (sco-unix?)

another unix printing issue. our client based pc's used to print some form's to our hp printer. as of the moment they can not print. i have checked & did the ff: #lpstat -r (scheduler is running) i dunno if i need to restart the whole unix box via shutdown or just checking at... (15 Replies)
Discussion started by: jedimaster
15 Replies

6. UNIX for Dummies Questions & Answers

Unix Sco 5.0.6

HI GUYS, this one should be pretty easy for you guys, i can only ftp to our server uisng the root user name, i added another user name and it wont let me login to the ftp server, how can i add a user name with ftp user rights, thanks a lot. (0 Replies)
Discussion started by: josramon
0 Replies

7. Filesystems, Disks and Memory

Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!!

Hello Moto I hope someone can help We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers.. a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies

8. UNIX for Dummies Questions & Answers

Sco unix

In sco unix sysyem, we can see the users by suing w. at the idel column we can know how long a user who login the system but do noting. My question is how can I auto logout such users like above? (6 Replies)
Discussion started by: luoxl
6 Replies

9. UNIX for Dummies Questions & Answers

SCO Unix

Does anyone know how to extend the environment variables in Sco Unix? :rolleyes: (3 Replies)
Discussion started by: Bodhi
3 Replies

10. Filesystems, Disks and Memory

SCO TCP/IP runtime System for SCO Unix

Hi everyone i have a question for all of you. It may be basic or it may be a good one. I recently aquired a copy of "SCO TCP/IP runtime System for SCO Unix" (thats what the disks say) and for the life of me i can not get it to load. i have tried opening the disk in linux and it can not determine... (0 Replies)
Discussion started by: Cerberus
0 Replies
Login or Register to Ask a Question
Sys::Utmp(3pm)						User Contributed Perl Documentation					    Sys::Utmp(3pm)

NAME
Sys::Utmp - Object(ish) Interface to UTMP files. SYNOPSIS
use Sys::Utmp; my $utmp = Sys::Utmp->new(); while ( my $utent = $utmp->getutent() ) { if ( $utent->user_process ) { print $utent->ut_user," "; } } $utmp->endutent; See also examples/pwho in the distribution directory. DESCRIPTION
Sys::Utmp provides a vaguely object oriented interface to the Unix user accounting file ( sometimes /etc/utmp or /var/run/utmp). Whilst it would prefer to use the getutent() function from the systems C libraries it will attempt to provide its own if they are missing. This may not be the module that you are looking for - there is a User::Utmp which provides a different procedural interface and may well be more complete for your purposes. METHODS new The constructor of the class. Arguments may be provided in Key => Value pairs : it currently takes one argument 'Filename' which will set the file which is to be used in place of that defined in _PATH_UTMP. getutent Iterates of the records in the utmp file returning a Sys::Utmp::Utent object for each record in turn - the methods that are available on these objects are descrived in the Sys::Utmp::Utent documentation. If called in a list context it will return a list containing the elements of th Utent entry rather than an object. If the import flag ':fields' is used then constants defining the indexes into this list will be defined, these are uppercase versions of the methods described in Sys::Utmp::Utent. setutent Rewinds the file pointer on the utmp filehandle so repeated searches can be done. endutent Closes the file handle on the utmp file. utmpname SCALAR filename Sets the file that will be used in place of that defined in _PATH_UTMP. It is not defined what will happen if this is done between two calls to getutent() - it is recommended that endutent() is called first. EXPORT No methods or constants are exported by default. Exportable constants These constants are exportable under the tag ':constants': ACCOUNTING BOOT_TIME DEAD_PROCESS EMPTY INIT_PROCESS LOGIN_PROCESS NEW_TIME OLD_TIME RUN_LVL USER_PROCESS These are the values that will be found in the ut_type field of the Sys::Utmp::Utent object. These constants are exported under the tag ':fields' : UT_USER UT_ID UT_LINE UT_PID UT_TYPE UT_HOST UT_TIME These provide the indexes into the list returned when "getutent" is called in list context. BUGS
Probably. This module has been tested on Linux, Solaris, FreeBSD ,SCO Openserver and SCO UnixWare and found to work on those platforms. If you have difficulty building the module or it doesnt behave as expected then please contact the author including if appropriate your /usr/include/utmp.h AUTHOR
Jonathan Stowe, <jns@gellyfish.com> LICENCE
This Software is Copyright Netscalibur UK 2001, Jonathan Stowe 2001-2006 This Software is published as-is with no warranty express or implied. This is free software and can be distributed under the same terms as Perl itself. SEE ALSO
perl. Sys::Utmp::Utent perl v5.14.2 2006-10-13 Sys::Utmp(3pm)