On Wednesday, April 17, 2002, at 10:09 , Dermot Paikkos wrote:

> I tried the following:
> use File::Temp qw/ tempdir /;
> .....
> $tempdir = tempdir();
> system("mount","-t","nfs","server:/usr1","$tempdir") || die "Can't
> mount into $tempdir: $!\n";
>
> I always get the OS error "no such file or directory". The dir is made
> so i am not sure if this is an OS problem or a design feature.

let's assume that you can run the command

        mount -t nfs server:/usr1 /mnt

at the command line.

Why not try

        my $mount_msg = "mount -t nfs server:/usr1";

        system( "$mount_msg $tempdir \n" ) or die "evil beasties....:$!";

and check that it's not the comma splicing issue there that
is making it come out on the command line as

        mount-tnfsserver:/usr1"$tmpdir"


comma splices are a bad way to make run on sentences,
since they appear to be subordinant clauses, that never
really graph out quite right.... 8-)

ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to