Dear Monks,
Following is the code which runs fine on any machine.
But If I submit this job to a cluster to run in batch mode, this script goes to sleep mode.
## Runs fine
devarajk>/u/devarajk/downloads/check_cvs.pl
## This goes to sleep mode
devarajk>sqrsh -grid desa /u/devarajk/downloads/check_cvs.pl
sqrsh is a utility we use to submit jobs to clusters.
#!/usr/local/bin/perl -w
use Data::Dumper;
use Cvs;
my $repository = "prod.nyc.com:/proj/ops/repository";
my $dir = "/tmp/";
my $cvs_obj = new Cvs (
$dir,
cvsroot => $repository,
"remote-shell" => 'rsh',
"debug" => 1,
) or die $Cvs::ERROR;
my $res = $cvs_obj->checkout(".");
print Dumper($res);
print "Successfully initialized cvs object for repository $repository
+and checked out in $dir\n";
I traced the code to where it sleeps. Its in IPC/Run.pm
$nfound = select(
$self->{ROUT} = $self->{RIN},
$self->{WOUT} = $self->{WIN},
$self->{EOUT} = $self->{EIN},
$timeout
) ;
IPC/Run.pm is called by Cvs/Command/Base.pm
The code actually checks out the repository but goes to sleep mode.
Any help would be appreciable. Is it related to STDOUT/STDIN buffer problems?
Thanks,
Kumaravel
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.