LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2004, 04:23 AM   #1
v3sS0n
LQ Newbie
 
Registered: Sep 2004
Distribution: Debian Sarge (testing)
Posts: 2

Rep: Reputation: 0
Question how to run a compile file in shell?


Hi

I have a connection to a linux server by using Putty SSH. I want to set up a socks proxy server there. I have the source distribution for 3proxy and i had already compiled it.Everything was ok. But when i try to run -- this error occour.
sh-2.05b$ sh 3proxy


3proxy: 3proxy: cannot execute binary file
sh-2.05b$


I run the 3proxy ASF executable using sh 3proxy command. 3proxy is the socks proxy I wanna host . It have manual for windows but linux manual is under construction. ALso i m a newbie , i dun know how to get what linux distro is..

any help will b gr8ly appreciated.

Last edited by v3sS0n; 09-25-2004 at 05:14 AM.
 
Old 09-25-2004, 05:41 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I'm not certain this will work, but you could try. cd to the folder where sh.3proxy is located, and ./sh.3proxy instead of sh.3proxy. The ./ tells sh to look in the pwd for the file sh.3proxy.
I'm just guessing here. Apologies if I offend with my ignorance.
 
Old 09-25-2004, 05:47 AM   #3
crashmakerMX
LQ Newbie
 
Registered: Sep 2004
Posts: 17

Rep: Reputation: 0
Re: how to run a compile file in shell?

Quote:
Originally posted by v3sS0n
sh-2.05b$ sh 3proxy


3proxy: 3proxy: cannot execute binary file
sh-2.05b$
with sh (shell) you can only run shell scripts. executables are started with /path/to/executable/3proxy. or you swith to the directory containing the executable and type
./3proxy

did you only 'make' or did you also run 'make install' ? make install should place the files in PATH directories so you could just type 3proxy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
run a shell gabib Linux - Software 8 03-12-2005 11:47 AM
How to run SHELL script pito Linux - Newbie 4 12-17-2004 03:05 AM
how to run a shell script oasisbhrnw99 Linux - Newbie 1 05-05-2004 01:21 PM
shell script to compile java czy11421 Programming 4 04-30-2004 09:42 AM
redhat shell won't compile my drivers! Chypmunk Linux - Software 11 01-29-2002 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration