1. Help Editing in SSH Term

I'm trying to run ed.ex with exu in a PuTTy terminal from a Windows box. Basically I'm just editing some files on my server.

The problem is when I run 'exu ed.ex' it complains thusly:

/home/realesta/bin/ed.ex:36 
can't find std/graphics.e in /home/realesta/bin/ 
or in /home/realesta/bin 
or in 
or in /home/realesta/euphoria/include 
include std/graphics.e 
                      ^ 

But that's a lie! /home/realesta/euphoria/include does exist and std/ is there and graphics.e is there! So what's the problem here? :)

In /home/realesta/bin/ exists the euinc.conf file, which has /home/realesta/euphoria in it.

So what might be the problem here?

Thanks!

new topic     » topic index » view message » categorize

2. Re: Help Editing in SSH Term

euphoric said...

I'm trying to run ed.ex with exu in a PuTTy terminal from a Windows box. Basically I'm just editing some files on my server.

The problem is when I run 'exu ed.ex' it complains thusly:

/home/realesta/bin/ed.ex:36 
can't find std/graphics.e in /home/realesta/bin/ 
or in /home/realesta/bin 
or in 
or in /home/realesta/euphoria/include 
include std/graphics.e 
                      ^ 

But that's a lie! /home/realesta/euphoria/include does exist and std/ is there and graphics.e is there! So what's the problem here? :)

In /home/realesta/bin/ exists the euinc.conf file, which has /home/realesta/euphoria in it.

So what might be the problem here?

Thanks!

Hi

Can you run the programs locally on the server (path probs associated with using a different tty type in Putty)?

Have you tried any other programs that use these includes (file access probs)?

Are you running it from within the bin directory

What happens when you try exu guru.ex both from outside and inside the /euphoria/bin directory?

Admittedly this does look like a puzzle, but its probably one of those dohhh moments.

Chris

new topic     » goto parent     » topic index » view message » categorize

3. Re: Help Editing in SSH Term

ChrisB said...

Can you run the programs locally on the server (path probs associated with using a different tty type in Putty)?

Isn't the SSH term considered local? I don't have any other way to run the programs that I know of.

ChrisB said...

Have you tried any other programs that use these includes (file access probs)?

Yes. They work fine.

One question: in my cgi file, I have to use !#../../bin/exu. Why can't I (or how can I) just use !#exu?

ChrisB said...

Are you running it from within the bin directory

No. I'm in another folder. But euinc.conf points to the includes, and exu is using that euinc.conf. At least it is for my cgi, which works fine.

ChrisB said...

What happens when you try exu guru.ex both from outside and inside the /euphoria/bin directory?

Can't open guru.ex 

Since this is my host's server, I don't know that I can make permanent changes to the PATH variables. Or maybe I can in a preferences file...?

Thanks for the help! smile

new topic     » goto parent     » topic index » view message » categorize

4. Re: Help Editing in SSH Term

Hi

Are the files world readable? Are you running the CGI program as a different user?

Re putty and local and remote terminals - it shouldn't make a difference, but I use tty and who in my programs so that I know exactly where (physically) which terminal the program is being run on.

when you type echo $EUINC what do you get (might be worth adding an EUINC to your .profile). when you type echo $EUDIR what do you get. When you type echo $PATH what do you get (you're allowed to edit this one to remove sensitive info).

Try deleting / renaming bin/euinc.conf (I thought this was meant for individual programs to override the global settings) see if there's an issue with this.

Chris

new topic     » goto parent     » topic index » view message » categorize

5. Re: Help Editing in SSH Term

Let's start from scratch: how would I make it so exu can be run from anywhere? Here's what I've tried:

I have /home/realesta/euphoria/bin in $PATH, so shouldn't that make exu accessible from anywhere?

My program index.esp has as its first line:

   !#exu 

Now, I can run exu from the same dir as index.esp and it works fine (I get the 'file name to execute' prompt). But when I try to run index.esp (with ./index.esp), it says it can't find exu!

   -bash: ./index.esp: exu: bad interpreter: No such file or directory 

But exu exists in the $PATH... doesn't it?!

Could it be that it is running ./index.esp as a different user? I don't see how since I'm the one calling it. sad

new topic     » goto parent     » topic index » view message » categorize

6. Re: Help Editing in SSH Term

euphoric said...

Let's start from scratch: how would I make it so exu can be run from anywhere? Here's what I've tried:

I have /home/realesta/euphoria/bin in $PATH, so shouldn't that make exu accessible from anywhere?

My program index.esp has as its first line:

   !#exu 

Now, I can run exu from the same dir as index.esp and it works fine (I get the 'file name to execute' prompt). But when I try to run index.esp (with ./index.esp), it says it can't find exu!

   -bash: ./index.esp: exu: bad interpreter: No such file or directory 

But exu exists in the $PATH... doesn't it?!

Could it be that it is running ./index.esp as a different user? I don't see how since I'm the one calling it. sad

try, as first line of program

  1. !/home/realesta/euphoria/bin/exu

(note, # is first)

Chris

new topic     » goto parent     » topic index » view message » categorize

7. Re: Help Editing in SSH Term

Probably the session being created by SSH is not running the config file that sets your PATH. When the shell is invoked as not interactive it won't read /etc/profile nor /.profile files.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Help Editing in SSH Term

Ah, that has come out as a numbered list

"#!/home/realesta/euphoria/bin/exu"

ignore the quotes

new topic     » goto parent     » topic index » view message » categorize

9. Re: Help Editing in SSH Term

ChrisB said...

Ah, that has come out as a numbered list

"#!/home/realesta/euphoria/bin/exu"

ignore the quotes

The tilde (~) is the escape character:

#!/home/realesta/euphoria/bin/exu

Matt

new topic     » goto parent     » topic index » view message » categorize

10. Re: Help Editing in SSH Term

Hi

How you getting on?

Chris

new topic     » goto parent     » topic index » view message » categorize

11. Re: Help Editing in SSH Term

ChrisB said...

How you getting on?

Not at all. grin

It would be nice if I could edit files remotely with ed (or some other colorized text editor), but it's not critical. getlost

new topic     » goto parent     » topic index » view message » categorize

12. Re: Help Editing in SSH Term

euphoric said...

Not at all. grin

It would be nice if I could edit files remotely with ed (or some other colorized text editor), but it's not critical. getlost

You can do almost anything that you want with this software remotely:

http://winscp.net/eng/docs/introduction

new topic     » goto parent     » topic index » view message » categorize

13. Re: Help Editing in SSH Term

Hi

I tend to use mc (midnight commander) to navigate files, and remotely edit quickly. A lot of distros already have it installed.

Chris

new topic     » goto parent     » topic index » view message » categorize

14. Re: Help Editing in SSH Term

ChrisB said...

Hi

I tend to use mc (midnight commander) to navigate files, and remotely edit quickly. A lot of distros already have it installed.

Chris

Chris:

see the link I posted in last msg.
It is more powerful and is also secure.
It works like mc between the client and the remote.

new topic     » goto parent     » topic index » view message » categorize

15. Re: Help Editing in SSH Term

bernie said...
euphoric said...

It would be nice if I could edit files remotely with ed (or some other colorized text editor), but it's not critical. getlost

You can do almost anything that you want with this software remotely:

http://winscp.net/eng/docs/introduction

Thanks Bernie! I'll check it out.

new topic     » goto parent     » topic index » view message » categorize

16. Re: Help Editing in SSH Term

bernie said...

You can do almost anything that you want with this software remotely:

http://winscp.net/eng/docs/introduction

Bernie, thanks for that heads-up. WinSCP is very useful! smile

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu