1. Help Editing in SSH Term
- Posted by euphoric (admin) Jan 04, 2009
- 1244 views
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!
2. Re: Help Editing in SSH Term
- Posted by ChrisB (moderator) Jan 04, 2009
- 1204 views
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
3. Re: Help Editing in SSH Term
- Posted by euphoric (admin) Jan 04, 2009
- 1163 views
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.
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?
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.
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!
4. Re: Help Editing in SSH Term
- Posted by ChrisB (moderator) Jan 04, 2009
- 1175 views
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
5. Re: Help Editing in SSH Term
- Posted by euphoric (admin) Jan 04, 2009
- 1193 views
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.
6. Re: Help Editing in SSH Term
- Posted by ChrisB (moderator) Jan 05, 2009
- 1210 views
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.
try, as first line of program
- !/home/realesta/euphoria/bin/exu
(note, # is first)
Chris
7. Re: Help Editing in SSH Term
- Posted by gbonvehi Jan 05, 2009
- 1186 views
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.
8. Re: Help Editing in SSH Term
- Posted by ChrisB (moderator) Jan 05, 2009
- 1183 views
Ah, that has come out as a numbered list
"#!/home/realesta/euphoria/bin/exu"
ignore the quotes
9. Re: Help Editing in SSH Term
- Posted by mattlewis (admin) Jan 05, 2009
- 1183 views
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
10. Re: Help Editing in SSH Term
- Posted by ChrisB (moderator) Jan 07, 2009
- 1176 views
Hi
How you getting on?
Chris
11. Re: Help Editing in SSH Term
- Posted by euphoric (admin) Jan 07, 2009
- 1165 views
How you getting on?
Not at all.
It would be nice if I could edit files remotely with ed (or some other colorized text editor), but it's not critical.
12. Re: Help Editing in SSH Term
- Posted by bernie Jan 07, 2009
- 1208 views
Not at all.
It would be nice if I could edit files remotely with ed (or some other colorized text editor), but it's not critical.
You can do almost anything that you want with this software remotely:
http://winscp.net/eng/docs/introduction
13. Re: Help Editing in SSH Term
- Posted by ChrisB (moderator) Jan 07, 2009
- 1169 views
Hi
I tend to use mc (midnight commander) to navigate files, and remotely edit quickly. A lot of distros already have it installed.
Chris
14. Re: Help Editing in SSH Term
- Posted by bernie Jan 07, 2009
- 1181 views
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.
15. Re: Help Editing in SSH Term
- Posted by euphoric (admin) Jan 07, 2009
- 1176 views
It would be nice if I could edit files remotely with ed (or some other colorized text editor), but it's not critical.
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.
16. Re: Help Editing in SSH Term
- Posted by euphoric (admin) Jan 08, 2009
- 1210 views
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!