![]() |
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 |
| Having a problem with a FTP Script using perl | scottzx7rr | Shell Programming and Scripting | 6 | 12-19-2007 06:26 PM |
| strange net::SFTP Perl module debug entry | csgonan | Shell Programming and Scripting | 2 | 10-11-2007 06:04 PM |
| PERL script problem | caddyjoe77 | Shell Programming and Scripting | 5 | 07-06-2007 02:29 PM |
| Problem executing setuid script in perl-5.8.6 | sarmakdvsr | Shell Programming and Scripting | 0 | 08-23-2005 02:11 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi All,
I have one strange problem in perl script. Bellow is the contents of the script i am trying to write: #!/usr/local/bin/perl my $module_list = ''; my @running_module; my $count=0; my $flag=0; my $ccprojecthome=$ENV{CCPROJECTHOME}; @module_list = `cat $ccprojecthome/product/$ENV{CCPROD}/$ENV{CCPRODVER}/config/abp_$ENV{CCPRODVER}_modbo.dat | cut -f2 -d" "`; $size = @module_list; print "\n First element $moddule_list[0] \n"; print "\n Lenght of the array $size \n"; @running_proj_list=`cat $ccprojecthome/module/ac/v650/config/module_profile | grep -v PROJ | grep -v Base | cut -f1 -d" "`; foreach $md (@module_list) { print "\n Module $md \n"; @running_proj_list=`/usr/bin/cat $ccprojecthome/module/$md/$ENV{CCPRODVER}/confing/module_profile | grep -v PROJ | grep -v Base | cut -f1 -d" "`; if ( $? != 0 ) { print "Command failed \n"; exit 1; } } print "\n List of projects \n"; print " @running_proj_list "; now the problem is that when i comment the whole for loop and execute script it will run properly but with for loop it is not working and giving error please help me to get out of this problem. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|