On Nov 4, Javeed SAR said:
>For eg here i have kept it in machine blrk35ed.
>This becomes hard coded, is there any other way to read label names,
>because i dont' want to hard coded in my script.
Take it as an argument to your application:
#!/usr/bin/perl -w
use strict;
my $machine = shift or die "usage: $0 machine\n";
my $file = "\\\\$machine\\LABEL\\comepr_voblist.txt";
open FILE, "< $file" or die "can't read $file: $!";
while (<FILE>) {
chomp;
system "cleartool", "mount", $_;
}
close FILE;
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
[ I'm looking for programming work. If you like my work, let me know. ]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]