- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error PERL Script: No filehandle passed
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2004 08:26 PM
тАО06-30-2004 08:26 PM
Error PERL Script: No filehandle passed
i want to run slipwire.pl on a HP-UX 11.11 System and i get a error: No filehandle passed at ./slipwire.pl line 157,
Slipwire.pl is a script to get information about files/directories, create a hash and write this information to a database.
The error is generated by creating the hashes.
..
find($file_list_line);
sub wanted {
$i++;
open (FILEH, $name);
my $key = $name;
$ctx = Digest::SHA1->new;
$ctx->addfile(FILEH);
$sha = $ctx->b64digest;
my @fileinfo;
..
The complete script is attached.
Any ideas???? - Thanks
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2004 08:48 PM
тАО06-30-2004 08:48 PM
Re: Error PERL Script: No filehandle passed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2004 08:57 PM
тАО06-30-2004 08:57 PM
Re: Error PERL Script: No filehandle passed
$name is set by find ... sub wanted ...
If I commet OUT the create hash lines, the script is running well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2004 09:08 PM
тАО06-30-2004 09:08 PM
Re: Error PERL Script: No filehandle passed
Perhaps you could change the line " open (FILEH, $name);" to
open (FILEH, $name) or die "ERROR: $!\n";
This way you will see if there is an error being generated with the open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2004 09:29 PM
тАО06-30-2004 09:29 PM
Re: Error PERL Script: No filehandle passed
use strict;
use warnings;
at the top of your script might also lead to the problem. I /always/ use those two. It also catches typo's and everyone makes typo's
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2004 10:19 PM
тАО06-30-2004 10:19 PM
Re: Error PERL Script: No filehandle passed
thanks.
The error is generate while the open() is try to open a FileHandle for a link and that don't work.
;-)