Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > Perl
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Perl section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 24th, 2007, 07:06 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting "Hooks.pm not found" error

Hi ,

My name is Roberto.
I'm fresh in perl programming, but I've done some basic scripts to use @ my work.
I´m not having problems with perl language, my only doubt is in the first line of my perl code when I point to my perl's directory.
I'm using the follow:

#!D:\Perl\bin\perl.exe -ID:\apps\TRANSS~1\bin
(I copied this from another script)

Here we have a scheduler that calls scripts to be executed in order to automate our process. But I'm having a "Hooks.pm not found" when this scheduler execute this perl. I think this happens because he is not calling the perl script from the directory where it's saved.

What I should do in my script to execute this perl script from any directory??Is it possible??

Thanx in advance!!

Roberto
Country: Brazil
Reply With Quote
  #2 (permalink)  
Old May 28th, 2007, 06:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just a thought, can you try and set this folder/directory as global path? Hope you are using Windows OS, then edit the environment variable PATH and add this to the end separated by a semicolon.

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with am/pm in GridView nitinp ASP.NET 2.0 Basics 0 November 4th, 2006 05:11 AM
Help needed for Windows Hooks (Global Mouse Hooks) effone Visual C++ 0 October 2nd, 2006 03:28 PM
Kernel Hooks J-Rod Need help with your homework? 0 August 30th, 2006 02:21 AM
Formatting a Field Containing a Time to AM/PM taleriana XSLT 2 March 16th, 2004 10:10 PM
Time conversions from 24hr to am/pm Blaise Classic ASP Basics 2 July 14th, 2003 09:38 PM



All times are GMT -4. The time now is 11:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.