LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   i have some problems with my ubuntu server again :( (https://www.linuxquestions.org/questions/linux-newbie-8/i-have-some-problems-with-my-ubuntu-server-again-896686/)

AngryBeast 08-11-2011 02:36 AM

i have some problems with my ubuntu server again :(
 
Hello LQ,

I have some problems with my ubuntu:

I have a project and when i try to execute any file it says " -bash: ./pj: No such file or directory "


root@vps64558:/var/tmp/project# pwd
/var/tmp/project
root@vps64558:/var/tmp/project#


root@vps64558:/var/tmp/project# ls
clear pj srun
root@vps64558:/var/tmp/project#


root@vps64558:/var/tmp/project# ./pj
-bash: ./pj: No such file or directory
root@vps64558:/var/tmp/project#


Anybody have any idea?

Thank you

bvm2607 08-11-2011 05:23 AM

try "ls -b" to make sure no nonprintables in "pj"

AngryBeast 08-12-2011 07:18 AM

Quote:

Originally Posted by bvm2607 (Post 4439479)
try "ls -b" to make sure no nonprintables in "pj"

didn't work !!!!!

---------- Post added 08-12-11 at 07:18 AM ----------

Come on LQ PLEASE HELP ME :-(

eSelix 08-12-2011 07:32 AM

Post output of this command, and please enclose it in the CODE tags:
Code:

ls -bl /var/tmp/project

AngryBeast 08-12-2011 07:34 AM

Quote:

Originally Posted by eSelix (Post 4440767)
Post output of this command, and please enclose it in the CODE tags:
Code:

ls -bl /var/tmp/project

here

Code:

root@vps64560:/var/tmp/project# ls -bl /var/tmp/project
total 1404
-rwxr-xr-x 1 root root    243 Nov 26  2010 clear
-rwxr-xr-x 1 root root 1415750 Dec  1  2010 pj
-rwxr-xr-x 1 root root  12288 Nov 26  2010 srun
root@vps64560:/var/tmp/project#


eSelix 08-12-2011 07:55 AM

And
Code:

file /var/tmp/project/pj

AngryBeast 08-12-2011 07:56 AM

Quote:

Originally Posted by eSelix (Post 4440790)
And
Code:

file /var/tmp/project/pj

Code:

root@vps64560:/var/tmp/project# file /var/tmp/project/pj
/var/tmp/project/pj: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
root@vps64560:/var/tmp/project#


eSelix 08-12-2011 07:57 AM

And
Code:

/var/tmp/project/pj

AngryBeast 08-12-2011 07:58 AM

Quote:

Originally Posted by eSelix (Post 4440792)
And
Code:

/var/tmp/project/pj

Code:

root@vps64560:/var/tmp/project# /var/tmp/project/pj
-bash: /var/tmp/project/pj: No such file or directory
root@vps64560:/var/tmp/project#


eSelix 08-12-2011 08:00 AM

If this file is compiled by you or you have source of it, post it. If not then I suppose that main target of this program is to printing "No such file or directory" ;)

AngryBeast 08-12-2011 08:01 AM

Quote:

Originally Posted by eSelix (Post 4440797)
If this file is compiled by you or you have source of it, post it. If not then I suppose that main target of this program is to printing "No such file or directory" ;)

i don't have the source..... but if i format and install centos works .... only on ubuntu gives me this error

eSelix 08-12-2011 08:06 AM

So, from where you got this file?

AngryBeast 08-12-2011 08:08 AM

Quote:

Originally Posted by eSelix (Post 4440806)
So, from where you got this file?

someone from work give it to me. i can't decomplile it ?

eSelix 08-12-2011 08:16 AM

Then post output of this:
Code:

strace /var/tmp/project/pj

AngryBeast 08-12-2011 08:17 AM

Quote:

Originally Posted by eSelix (Post 4440822)
Then post output of this:
Code:

strace /var/tmp/project/pj

Code:

root@vps64560:/var/tmp/project# strace /var/tmp/project/pj
execve("/var/tmp/project/pj", ["/var/tmp/project/pj"], [/* 18 vars */]) = -1 ENOENT (No such file or directory)
dup(2)                                  = 3
fcntl(3, F_GETFL)                      = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0fbc33e000
lseek(3, 0, SEEK_CUR)                  = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3)                                = 0
munmap(0x7f0fbc33e000, 4096)            = 0
exit_group(1)                          = ?
root@vps64560:/var/tmp/project#



All times are GMT -5. The time now is 03:05 PM.