Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Running svrmgrl from perl script
Hi,
I am running into a problem when using open2() with Oracle's svrmgrl under release 7.3.4. The script works fine with release 7.3.3 Here is my script:
#!/usr/bin/perl
use FileHandle;
use IPC::Open2;
$pid = open2(\*SVROUT, \*SVRIN, "svrmgrl");
SVRIN->autoflush();
print SVRIN "exit;\n";
close(SVRIN);
while (<SVROUT>) {
print;
}
close(SVROUT);
exit;
Oracle Server Manager Release 2.3.3.0.0 - Production
Copyright (c) Oracle Corporation 1994, 1995. All rights reserved.
Oracle7 Server Release 7.3.3.3.0 - Production Release With the distributed, replication and parallel query options PL/SQL Release 2.3.3.2.0 - Production
SVRMGR> Server Manager complete.
Oracle Server Manager Release 2.3.4.0.0 - Production
Copyright (c) Oracle Corporation 1994, 1995. All rights reserved.
Oracle7 Server Release 7.3.4.0.0 - Production With the distributed, replication and parallel query options PL/SQL Release 2.3.4.0.0 - Production
SVRMGR> MGR-11401: input error, unable to read input line MGR-01508: unable to close the current file
Any help would be appreciated
Thanks.
--