LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 05: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 06:14 AM.
 
Old 09-25-2004, 06:41 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
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, 06: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:47 PM
How to run SHELL script pito Linux - Newbie 4 12-17-2004 04:05 AM
how to run a shell script oasisbhrnw99 Linux - Newbie 1 05-05-2004 02:21 PM
shell script to compile java czy11421 Programming 4 04-30-2004 10:42 AM
redhat shell won't compile my drivers! Chypmunk Linux - Software 11 01-29-2002 03:39 PM


All times are GMT -5. The time now is 01:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration