Re: Two queries about a DEC server
From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 05/04/05
- Next message: dn_perl_at_hotmail.com: "Re: Two queries about a DEC server"
- Previous message: Stachu 'Dozzie' K.: "Re: find and regular expresions"
- In reply to: dn_perl_at_hotmail.com: "Two queries about a DEC server"
- Next in thread: dn_perl_at_hotmail.com: "Re: Two queries about a DEC server"
- Reply: dn_perl_at_hotmail.com: "Re: Two queries about a DEC server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 4 May 2005 13:56:20 -0400
["Followup-To:" header set to comp.unix.misc.]
On 4 May 2005 03:04:29 -0700, dn_perl@hotmail.com
<dn_perl@hotmail.com> wrote:
>
> (Crossposting to unix.shell only because unix.misc seems to
> be a moribund forum.)
>
> I am facing one serious doubt and one curiosity about a DEC
> server; no idea whether DEC's features are causing them in any way.
>
> I am helping a friend over phone. His home dir is /usr/home/jeff ;
> he logs in; runs 'cd proj' and is in /usr/home/jeff/proj. He
> runs 'vi aa01' and from within vi he runs the command "!ls -l".
> The command displays files in his $HOME, not in $HOME/proj.
> Even ":e bb01" command opens the file as $HOME/bb01. On every
> SUN box I have worked on, it woul dopen a file whose path is
> "$HOME/jeff/bb01". How is 'vi' treating $HOME as the current dir?
> Is it due to some artefact which ca be duplicated on a SUN box
> as well? Just curious.
>
Is it possible that 'vi' is an alias to 'cd; vi' ?
>
> On to next topic. I have a perl script : /usr/home/jeff/aa.plscr ;
> its first line is : "#!/usr/local/bin/perl", its mode is rwxr-xr-x,
> but if I try to run it, I get the error : command not found.
> "which perl" returns "/usr/local/bin/perl" as its path.
> But though : "./aa.plscr" does not run or even if the file is
> tried to run with its full path : "/usr/home/jeff/aa.plscr"
> it still gives the error : 'command not found', I can run the file
> by specifying the word 'perl' on the command line.
> Thus : 'perl /usr/home/jeff/aa.plscr' does run.
> I am afraid I don't have access to the DEC server myself. Is such
> a sequence of events even possible?
>
Did you edit that script on a Windoze machine? Windows ends each line
with "\r\n", so the first line of the script would look for a file
called "/usr/local/bin/perl\r".
-- QOTD: "It's not the despair... I can stand the despair. It's the hope."
- Next message: dn_perl_at_hotmail.com: "Re: Two queries about a DEC server"
- Previous message: Stachu 'Dozzie' K.: "Re: find and regular expresions"
- In reply to: dn_perl_at_hotmail.com: "Two queries about a DEC server"
- Next in thread: dn_perl_at_hotmail.com: "Re: Two queries about a DEC server"
- Reply: dn_perl_at_hotmail.com: "Re: Two queries about a DEC server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|