On the last point, does this happen even when using the Task Scheduler utility and running the script as a specified account? I'm working on a script that needs to run periodically throughout the day and intend to use the WinNT Task Scheduler--the script appears to run fine so far from the DOS command line. Are there special instructions for running it under Task Scheduler as a particular account? Thanks
-----Original Message----- From: Tim Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 10:26 AM To: 'Akens, Anthony'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Strange behaviour of chdir in mapped drives That's exactly right. You will run into the same problem if you try running your scripts in the scheduler. -----Original Message----- From: Akens, Anthony [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 7:12 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Strange behaviour of chdir in mapped drives Is the drive you're trying to access actually mapped for the user you're running the cgi-bin as? Remember, in windows drive mappings are a per-user thing, so while yes it will work when you run it at a command line it's because you're logged in and have the drive mapped. When you're running it through a web browser as a cgi-bin program the drive has to be mapped. I think if I remember right it actually needs to be mapped for the user the web server is running as, though it's been a while. It would probably be much easier for you to use the unc path. \\server\share Tony -----Original Message----- From: beginner beginner [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 8:57 AM To: [EMAIL PROTECTED] Subject: Re: Strange behaviour of chdir in mapped drives Hi, I have tried it through command line It is working When i used the same code and put the file in cgi-bin and try to run through explorer it didn't worked $basedir= "I:/tech/work/web/Documents"; chdir($basedir) or die $!; $test=`dir /s /b *.*`; print $test; If I simply replace I: with D: It starts working. Please help. Thanks, Amit --- "Jenda Krynicky" <[EMAIL PROTECTED]> wrote: >From: "Rob Dixon" <[EMAIL PROTECTED]> >> Beginner Beginner wrote: >> > Hi All, >> > I wanted to search for *.html file on Server which I can >> > mount in my Windows XP: >> > e.g. I drive mapped to tech\work\web\documents. >> > as I:\tech\work\web\documents >> > now i try to go inside this directory >> > as >> > $basedir="I:/tech/work/web/documents"; >> > chdir($basedir); >> > >> > but this is not working I have tried the same with my local drives >> > and it was working fine Don't know why May be you guys can help me >> > out to solve my problem. >> >> Hi Mr B. >> >> How do you know this isn't working? >> >> Perl will give you a reason for failure if you try >> >> chdir $basedir or die $!; > >chdir $basedir or die $^E; > >might give you more info. > >Jenda >===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it >comes to wine, women and song, wizards are allowed to get drunk and >croon as much as they like. > -- Terry Pratchett in Sourcery > > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] _____________________________________________________________ Get Your Private, Free Jatt Email at http://www.jatt.com/ _____________________________________________________________ Select your own custom email address for FREE! Get [EMAIL PROTECTED], No Ads, 6MB, IMAP, POP, SMTP & more! http://www.everyone.net/selectmail?campaign=tag -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]