General :: Get "command Not Found" When The Binary File Exists?

Feb 21, 2011

I have just compiled a linux build of tests in my VirtualBox VM. When I run it, I get:

bash: ./tests: No such file or directory

I did some research, and found it could permissions, missing libraries or different architecture. So I checked those:

ls -al tests:

-rwxr-xr-x 1 me me 9948598 2011-02-21 01:54 tests

file tests

tests: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped

uname -a
Linux DevBox 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC 2011 x86_64 GNU/Linux
ldd tests:
linux-vdso.so.1 => (0x00007fff7db90000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f10ef14c000)

[Code].....

View 4 Replies


ADVERTISEMENT

General :: Command Line To Prepend 8 Bytes Of Data To A Binary File?

Jan 14, 2011

i would like to add 8 bytes of data to the begigning of a binary file.is there a command for this?

View 2 Replies View Related

Programming :: Binary File Cannot Be Found?

Jan 28, 2010

I get this error when I run the program that i created using eclipse.How to fix this?

View 3 Replies View Related

Fedora :: SNMPwalk / SNMPget Binary Path - File Not Found

Jul 24, 2009

Just upgraded from UBUNTU to FEDORA 11. Installed most add on programs such as cacti & mysqld using YUM INSTALL. With help of 'scottro', I finally got cacti running, but still finding errors (most problems caused by different directory locations in this particular distro).

snmpwalk Binary Path
The path to your snmpwalk binary.
[ERROR: FILE NOT FOUND]
snmpget Binary Path
The path to your snmpget binary.
[ERROR: FILE NOT FOUND]
snmpbulkwalk Binary Path
The path to your snmpbulkwalk binary.
[ERROR: FILE NOT FOUND]
snmpgetnext Binary Path
The path to your snmpgetnext binary.
[ERROR: FILE NOT FOUND]

Does anyone know where are these directories located in Fedora (11)? Is there a way to find where a directory is located (normally i use 'whereis' )? No such problems when using UBUNTU...

View 14 Replies View Related

General :: Can't Install .Deb File Or (package) / Dpkg: Command Not Found?

Jan 3, 2010

I'm using a new Distro and after installing it and randomly searching for help on websites on how to install a .Deb file using dpkg at the konsole/terminal it says Bash : dpkg: Command not found . how is this possible ? Do I have to know about all the packages in the package manager to install this. slight difference for me ... knowing what I have and knowing if I need Apr93-323? (whatever) installed first or not ? The only thing I know is that I have the Iso image installed ... which is my linux distro . Where to go from here? because I usually go to a website site to find Software to install ...if I need it .back to the basics

View 14 Replies View Related

General :: Find Command Give Error File Not Found?

May 27, 2011

find /var/spool/mqueue -group abc -exec rm -rf {} ;Using above command , I delete all the files belong to group abc.Now the problem i face is that the this command gives error that some files are missing . And this error occur because after creating list of files, it pass that list to rm -rf but till that time sendmail process queue and some of files disapper from /var/spool/mqueue.

View 5 Replies View Related

General :: BashSR File Edited Wrongly - Sudo Command Not Found

Sep 20, 2010

I had edited the bashsr file wrongly in my ubuntu while trying to put a "export" command in bashsr for javac. Next when i am writing sudo , its saying :
Command 'sudo' is available in '/usr/bin/sudo'
The command could not be located because '/usr/bin' is not included in the PATH environment variable. sudo: command not found

View 3 Replies View Related

General :: Check If A Directory Exists In Command Line?

Jan 21, 2010

How to check if a directory exists in Linux command line?

[Code]....

View 5 Replies View Related

Programming :: Finding A Utility To Combine Two Or More Binary Files Into A Single Binary File?

May 5, 2011

Is there any Linux utility to combine two or more binary files into a single binary file ?

View 7 Replies View Related

General :: Command To Copy The File Practice.txt To A New Name Of Myfile.txt While In The Home Directory-found

Nov 15, 2010

-the command to copy the file Practice.txt to a new name of Myfile.txt while in the home directory-found
-command to create a directory in the home directory-found
-say i just created a new directory called "test". whats the command to delete the test directory.-found
-command to create a blank, text file without using an editor.
-the exact syntax in Linux you would need to rename the file to a new name-found

View 4 Replies View Related

General :: Error Running A .sh Script When Extracted From A Jar File - Nstall.sh: Command Not Found

Jan 4, 2010

I am trying to run a script called install.sh as follows: I get a jar file, and extract it using the command: unzip filename.jar -D path/to/files then I navigate to that directory where I extracted the files, and run the command: sh install.sh (where install.sh is one of the files that has been extracted in that directory using the above unzip command.) running this command gives me an error:'nstall.sh: command not found.' among other errors in the script ( from that portion of the script that should not even be executed, which is really weird). However, instead of unzipping the jar file, if I just copied the same install.sh file to that folder, and ran the 'sh install.sh' command, the script runs fine.

View 6 Replies View Related

General :: Check File Exists

Feb 20, 2010

I have scenrio where i have to check first whether the files exists or not then count of records should not be equal to zero and file should be of current day not the previous day then only process my next task.There are three files totally.please let me know how to write script to achieve the same.

View 2 Replies View Related

General :: File Exists And Yet It Doesn't?

Jul 11, 2011

I have a rather strange issue I'm attempting to fix here. One of the servers I work with had a log file reach 2GB in size and stopped logging. The software which is logging to said file cannot be stopped or restarted and does not provide a way to rotate log files -- poor design, I know. So in my infinite wisdom (or stupidity, however you want to read that), I truncated the log file in place with:

Code:
>vmsproxy.log
When I realized the log file was not being appended to, I checked lsof output and it

[code]...

View 7 Replies View Related

General :: Doesn't Show The File That Exists?

Sep 10, 2009

we have installed vignette software on the linux box and would like to uninstall it. To uninstall it we need to delete one file named vpd.properties. When we used locate vpd.properties, the file is found in 2 places. But when we used the ls -a in those locations the file is not seen. basically we want to remove that file. If we do rm vpd.properties, this also doesn't work. Also when we used find -H vpd.properties the file is not found. What is wrong here. I am sure the file vpd.properties will be added to file system as part of vignette. Can anyone suggest what could be wrong here.We logged in as root user to remove this file. Installation is done twice using root and vignette user ids. Thats why file is located in 2 places.

View 3 Replies View Related

General :: Script To Show If File Exists?

Dec 13, 2010

I have a script that runs each day at 6am and looks for files created within the last day and outputs the text to a file which it emailed to me. Im wanting to change it so that it would say something like "phone system backup complete" or "websense back complete" and say fail if its not there.

Dec 13 02:27 /mnt/ukwcs-net-config/IPT/Backup12-13-10#2-20.tar
Dec 13 01:00 /mnt/ukwcs-net-config/Websense/wsbackup_2010-12-13_010000.tar.gz
Script:
find /mnt/ukwcs-net-config -mtime -1 -ls | egrep '(.dmp|.tar.gz)' > log.txt
find /mnt/ukwcs-net-config -mtime -1 -ls | egrep '(/IPT/)' > logi.txt
find /mnt/ukwcs-net-config -mtime -1 -ls | egrep '(.agb)' > loga.txt

[Code]....

View 2 Replies View Related

General :: Command To Find The Source Package Of A Binary?

May 30, 2010

I know there's a which command, that echoes the full name of a binary (e.g. which sh). However, I'm fairly sure there's a command that echoes the package that provides a particular binary. Is there such a command? If so, what is it? I'd like to be able to run this:

commandName ls and get coreutils for example.

View 1 Replies View Related

General :: Convert Binary File In To Ascii File Using Shell Script?

May 23, 2011

i am trying to convert a binary file in to ASCII using shell script. this file contains multiple types of data like string, number, bcd, etc.

View 5 Replies View Related

General :: How To Verify If The File Is Binary Or Text Without To Open The File

Sep 7, 2010

how to verify if the file is binary or text without to open the file

View 2 Replies View Related

General :: Command To Run Program When Package Doesn't Match Binary?

Jul 11, 2011

I have a weird/stupid question. How do you know what command would start an application after installing it, if the synaptic package name doesn't match?

For example google chrome and lmsensors. The first appears as Chrome in Synaptic and the second as lmsensors, but to run them you have to type google-chrome for the first and sensors for the second in the console to start them.
When I did locate sensors or locate chrome/chromium, nothing came up in the search that would hint me that I need to run those commands. I had to rely on a google search and look for someone else's answer. Is there a better way, one that I can figure it out on my own?

View 2 Replies View Related

Ubuntu :: /localhost/something/index.php Not Found Even It Exists?

Jan 24, 2010

I have a very strange problem.Few days ago everything was working fine.Now every site I'm developing under /var/www doesn't open at all.If i have a file /var/www/siteone/index.php, when i try to open http://localhost/siteone/index.php it's not opening. And IT USED TO OPEN few days ago.It seems that php is working: http://localhost/index.php is working.I'm using .htaccess in subfolders. I remove it for tests - nothing changed.What new i did to my Ubuntu:Installing of VMware Server 2.0.2 + Windows XP as a guest. Works fine.Strange error/warning from error.log in apache2 folder:PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/apc.so' - /usr/lib/php5/20060613+lfs/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0[Sun Jan 24 18:34:02 2010] [error] [client 127.0.0.1] File does not exist: /var/www/siteone/localhostWhy this localhost appears at the end of line?I'm using linux/ubuntu for about 3 months already - i'm not confident with it.

View 2 Replies View Related

General :: Does First Line Create File In Tmp Directory With Dsuser.exists

Oct 19, 2010

does first line create file in tmp directory with dsuser.exists.* ?or we are assigning the path of existing file in this directory?

View 2 Replies View Related

General :: Patch In .sh File - Error "patching: Command Not Found"

Mar 1, 2011

I have a script: `cd $FILEPATH && patch -i $TMPFILEA2$FILETMPPATH` Variable $FILESPATH is = /tmp/ardiff.AvUUGfOKa2/a/hello/ and Variable $TMPFILEA2$FILETMPPATH is = /tmp/ardiff.AvUUGfOKa2/b/hello/hello.c.patch. I don't know, why is it no working from script file, it write me message to terminal: ./ardiff.sh: line 242: patching: command not found.

But I have no PATCHING command there!!!! The paradox is, when I want to patch it from terminal (I write it to terminal by keyboard, it works).

View 4 Replies View Related

General :: Parsing A Binary File?

Mar 17, 2011

Is it possible to parse through a binary file using a script using either Korn shell or Bash

View 3 Replies View Related

General :: Ubuntu 10.10 And Command Line Scripts - Error - Android: Command Not Found

Mar 26, 2011

I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...

I just installed the JDK, SDK, Eclipse successfully (or I assume):

* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).

** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,

My system:

Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2

View 5 Replies View Related

General :: Access The Dbxml From The Command Line And It Returns Command Not Found?

Apr 30, 2011

I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found

path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found

Can someone point me in the right direction

View 1 Replies View Related

General :: Unconvert Text File From Binary Format

Dec 28, 2010

I've got a rather large CSV file (~700MB) which I know to consist of lines of 27-character alpha-numeric hashes; no commas or anything fancy. Somehow, during its migration from Windows to Linux (via winSCP and then a few regular SCPs), it has converted into some kind of binary format I am unfamiliar with.If I open the file in vi, everything appears fine, and it says [converted] at the bottom, although I know it's not a line endings issue (and dos2unix doesn't help). If I 'head' the file, it looks proper except for a " at the beginning of the first line. If I open up the file in nano, however, I see the at the start and then "^@" before every character (even newlines and EoF).

If I try to re-save or copy the file (say via: head file.csv > short.txt), this special encoding is preserved. I copied the first ten lines out of vi (which displays it properly) into my Windows clipboard via my SSH client, then pasted it into a new text file, test.txt. This file is visually identical when opened in vi (and similar through 'head', minus the ), although it's roughly half of the filesize. I have no idea what format this once-text file got converted to (it's notoriously hard to search the internet for symbols), but surely there must be some way to convert it back.

View 1 Replies View Related

General :: Catalina.Out File Has Binary Data After Rotate

Feb 14, 2011

I manually rotated my catalina.out file, and now the file jumps to 30+Mb and when I try to view it, less tells me it might be a binary file. It sure appears to have binary data in it, about 30meg of it.

I did the rotate via a copy:
copy catalina.out to another file
cat /dev/null > catalina.out

I have tried using echo:
echo "" > catalina.out
...also with the same result.

This application isn't something I can just bounce when necessary. It kind of appears that the original file is still there - sort of. But is it not readable text anymore.

SunOS 5.10
tomcat 5.5.26 (version required by app vendor)

View 2 Replies View Related

Ubuntu :: Deb Command Does Not Exists?

Aug 19, 2010

I downloaded the latest version Ubuntu from ubuntu.com and I am trying to install Oracle XE from the below link but for the first step couldn't find "deb" command, is the command replaced[URL]

View 3 Replies View Related

General :: -bash: /usr/sbin/amrecover: Cannot Execute Binary File

Jun 8, 2010

I just installed amanda-backup_client-2.6.0p2-1.rhel4.i386.rpm on my Red Hat Enterprise Linux 4 system. But I don't know who to check if it successfully installed or not. When I try to run amrecover from root, I get:

-bash: /usr/sbin/amrecover: cannot execute binary file

View 4 Replies View Related

General :: Creating Bash File That Changes Decimal To Binary Using Obase?

Apr 21, 2011

Code:
#!/bin/bash
echo 'obase=2;10'|bc

[code]...

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved