![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem in a perl script | Ex-Capsa | Shell Programming and Scripting | 1 | 06-30-2009 05:53 AM |
| problem in perl script | namishtiwari | Shell Programming and Scripting | 4 | 06-24-2009 12:11 PM |
| call shell script from perl cgi script problem | raksha.s | Shell Programming and Scripting | 2 | 03-25-2009 04:50 AM |
| Having a problem with a FTP Script using perl | scottzx7rr | Shell Programming and Scripting | 6 | 12-19-2007 06:26 PM |
| PERL script problem | caddyjoe77 | Shell Programming and Scripting | 5 | 07-06-2007 02:29 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
perl script problem.
I test this perl script on hpux 11.x and everything is OK, on hpux 10.20 it doesn't work
Code:
perl -e 'local($PSTAT,$PSTAT_STATIC,$mem_info,$PSTAT_STRUCT)=(239,2,"\0"x120,"LI4L"); syscall($PSTAT,$PSTAT_STATIC,$mem_info,length($mem_info),1,0); print "RAM=".int((unpack($PSTAT_STRUCT,$mem_info))[4]*((unpack($PSTAT_STRUCT,$mem_info))[5])/(1024*1024))."\n";' Thx Last edited by pludi; 10-14-2009 at 09:39 AM.. Reason: code tags, please... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|