Loading ...
Sorry, an error occurred while loading the content.
 

Re: [PBML] perl open across an automount nfs mount point siliently fails

Expand Messages
  • Dave Gray
    ... If you modify your code a bit to spit out the error it s getting, that might help track down the problem: my $fn = /tools/ccscripts/template ;
    Message 1 of 2 , Apr 29, 2004
      > However, if I want to update this file, ie:
      >
      > open (TEMPLATE, "> /tools/ccscripts/template") or
      > die "unable to open, stopped";
      > print TEMPLATE "boo\n";
      > close (TEMPLATE);
      >
      > The script does not die and the "/tools/ccscripts/template" file has
      > not been modified.

      If you modify your code a bit to spit out the error it's getting, that
      might help track down the problem:

      my $fn = '/tools/ccscripts/template';
      open(TEMPLATE, "> $fn") or
      die "couldn't overwrite [$fn]: $!\n";
      ...

      Cheers,
      Dave
    Your message has been successfully submitted and would be delivered to recipients shortly.