![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Displaying the data from the select query in a particular format | sachin.tendulka | Shell Programming and Scripting | 15 | 12-11-2007 08:44 AM |
| Query in perl | Dana Evans | UNIX for Dummies Questions & Answers | 2 | 11-21-2007 11:27 PM |
| sed format query | gopsman | Shell Programming and Scripting | 1 | 05-15-2007 03:26 AM |
| perl query | bishweshwar | Shell Programming and Scripting | 1 | 04-30-2007 10:03 AM |
| Perl CGI Query | pondlife | Shell Programming and Scripting | 4 | 06-08-2006 10:28 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Perl Query Regarding format
Hello people.
I have got the following script QM=ARGV[0]; open (CHS_OUT, "echo 'DISPLAY QSTATUS(SYSTEM.CLUSTER.MY.QUEUE) all'|runmqsc $qm|"); while (<CHS_OUT>) { if ( /QUEUE\(/ ) { $QueueName = ValueParser("QUEUE", 6); } if ( /IPPROCS\(/ ) { $InpProcs = ValueParser("IPPROCS", 8); #print ("\nInp Procs : $InpProcs"); } if ( /OPPROCS\(/ ) { $OutProcs = ValueParser("OPPROCS", 8); #print ("\nOut Procs : $OutProcs"); } if ( /CURDEPTH\(/ ) { $CurDepth = ValueParser("CURDEPTH", 9); write; } } format STDOUT = @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< @>>>> @>>>> @>>>>>> $QueueName, $InpProcs, $OutProcs, $CurDepth The problem is that I am getting a warning while running the script: Use of uninitialized value at test.pl line 113, <CHS_OUT> chunk 73. Thius error comes a number of times ... but I have printed the values of every variable and found them to be initialized. Althoug the script is running fine in one server I am not getting the value of OutProcs in another server. Any idea folks? ![]() |
|
||||
|
I noticed on this line that the variable QM:
Code:
open (CHS_OUT, "echo 'DISPLAY QSTATUS(SYSTEM.CLUSTER.MY.QUEUE) all'|runmqsc $qm|"); Code:
QM=ARGV[0]; |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|