ukhas jean wrote:
> Hi Bill,
>  
> the default shell when i login to the linux machine is the korn shell.
> I have tried without the escaping of '/' and ' ' (space) ... it still 
> doesnt work ... ofcourse i tried 'chdir /view' but it reports an error. 
> (since chdir is not a shell-command).

I use tcsh and it has chdir built in.

> I am stuck at this place for more than 5 hours and google aint helping 
> me either. :(
>  
> ANy help is most appreciable.

1) You could try running another shell like bash or tcsh using a ->cmd()
    and see if that makes any difference.

2) You could always write your own cd/chdir in Perl and upload it and
    use that.

Something like this should work:

#!/usr/bin/perl

use strict;
use warnings;
use Cwd;

my $dir = getcwd;
my $newdir = shift || '';
if ($newdir) {
        chdir $newdir or die "$!($^E)";
} else {
        chdir or die "$!($^E)";
}
# print "$dir => $newdir\n";

__END__

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to