General :: See If A Binary Is Running?
Aug 19, 2010I'm trying to autodetect if certain applications (for example, Firefoxre running. I figured the easiest way would be by checking process names.
View 2 RepliesI'm trying to autodetect if certain applications (for example, Firefoxre running. I figured the easiest way would be by checking process names.
View 2 RepliesI have written a c program. And compiled it to make a binary. Now when i try to call this binary from php page, it is not being executed.
View 14 Replies View RelatedSpotify released a native linux client about a year ago. It would be awesome if I could use it on my linux desktop at work. Unfortunately, these computers are managed by a central server and so I can't install anything without system admin rights. I was wondering if there was a binary available that I could run from my home directory? The operating system we use is openSUSE 11.3 64-bit.
View 1 Replies View RelatedIs there any Linux utility to combine two or more binary files into a single binary file ?
View 7 Replies View RelatedHow to coded version info and other information likes author and company name into the ELF binary?
I prefer the put the version info during build step.
I am having problems with scp during a backup operationI added a ps -ef before and after the scp operation used during the backup.The backup is a script to backup a Zimbra ServerI am including the code segment that I am having problems
Code:
# DRCP Section. To scp newly created archives to a remote system
if [ "$DRCP" = "yes" ]
[code]...
Is it possible to convert/recompile an already compiled x86 binary into an ARM binary?I'm using a BeagleBoard with a command-line Ubuntu (Maverick) and want to run a Ventrilo server but the x86 executable they supply cannot be run on the hardware as far as I can tell (most likely due to differing architecture).Unfortunately I don't have access to the source to allow me to recompile it natively.
View 3 Replies View RelatedI need to change the functions of some linux commands. We can't edit the binary files provided in /bin, is there any other method other than alias.For ex. - I need to change the function chmod so that it takes only three consecutive integers as input (chmod 777 filename) and nothing else ? Do I have to write by own code for it, or is there any other alternate method.
View 2 Replies View RelatedIn a DOS prompt, I would like to ftp ASCII get a file from a Linux machine. The file was created in vi, just a normal text file.in DOS prompt:
Code:
ftp> ascii
200> Switching to ASCII mode.
[code]...
Trying to setup a new Ubuntu machine and just downloaded 'p4' (Perforce command line client). It's a single file download - a statically-linked binary executable, so I just did:
wget [URL]
...right into /usr/bin. Simple enough. Except:
root@aj-ubuntu:/usr/bin# ll p4
-rwxr-xr-x 1 root root 748808 2010-02-11 16:54 p4
root@aj-ubuntu:/usr/bin# ./p4
[Code].....
I'll be using a specific example, but really this generalizes to pretty much any binary on linux that can't seem to find its' dependent libraries. So, I have a program that won't run because of missing libraries:
./cart5: error while loading shared libraries: libcorona-1.0.2.so: cannot open shared object file: No such file or directory
ldd sheds some light on the issue:
linux-vdso.so.1 => (0x00007fff18b01000)
libcorona-1.0.2.so => not found
libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6
[Code]....
Suppose i have some binary blobs in ~/pkg/opt, ( I created those with the standard ./configure, make, make DESTDIR=~/pkg/opt install ).Is it possible to pack this structure into an installable rpm that can be installed/uninstalled from a RHEL/CentOS system...? rpm -ivh my_package.rpm ? Doing this in Slackware is easy, as well as in Arch, one installs to a fakeroot ( pkg ), creates a PKGBUILD, and runs makepkg -R PKGBUILD, this creates an installable Arch Package. But i am not very familiar with the more fashionable package formats, *.debs and *.rpms. Can i just pack the thing from binary, or do I have to build it and pack it in the process? makepkg -R PKGBUILD just packs it if one is lazy enough to write the whole PKGBUILD.
View 1 Replies View RelatedRight now to install software from source I do a ./configure && make && make install which doesn't allow for easy uninstallation (some don't come with an 'uninstall' goal, and if they do you have to keep the source around). I'd like to learn how to create binary RPMs from source tar.gz files (one reason being that it makes for easier uninstallation). I tried the following but it complains with the following errors:
Code:
$ rpmbuild -ta mysource.tar.gz
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)
Apparently that's what happens when there is no SPEC file in the tarball. But all the tars I've tried give this same error. Is there a simple way to create binary RPMs from source files - as an example, this source tar [URL].
Using Mysql binary log we can able to take incremental backup perfectly, like that we can able to create binary log for normal directory (or) is there any option to enable binary log for normal directory.?
View 1 Replies View RelatedIs it possible to parse through a binary file using a script using either Korn shell or Bash
View 3 Replies View RelatedI am working on a custom hand-held device which runs a variant of Ubuntu Linux, 2.6.18. I have a set of 4 binary files (for oprofile) which have been known to run in this environment, but when I copy them to /usr/bin, I can't run them: I get this message;root@ldogberry:/usr/bin# ./ophelp-sh: ./ophelp: not foundThis happens when I specify the full path, when I run from the /usr/bin directory -- it happens no matter what. Bash even does command-line completion on the file -- and then turns around and instantly claims the file is not found.
View 7 Replies View RelatedI need to compare two binary files and get output in form
for every different byte. So if file1.bin is code...
what is the easiest way to accomplish the goal? Standard tool? Some 3rd party tool?
Is it possible to get the path of a process running under Mono in Linux? For example if I launch KeePass using mono KeePass.exe, running ps just shows the command name as mono, while what I really want is KeePass.exe.
View 1 Replies View RelatedI had full backup in mysql. now i added some tables .i got new binary logs. how i can i use these logs to have incremental backup.
View 3 Replies View RelatedI have this source.tar.gz, I unpack it and cd into it, then I
Code:
$mkdir build
$./configure --lots-of-options --prefix=$PWD/build
$make
$make install
So I have inside my build folder, 4 folders, usr, lib, man, share. How do I convert this into a binary rpm package...?
I'm working on a Linux distro, and I have the full thing compiled and everything, but it is centered around a single program (a rendering engine). Is there any way that I can figure out what dependencies the binary has at runtime? I know I don't need gcc and a ton of other files, but I'm not sure what I can remove to decrease size (I'm aiming at under 20 MB, as Slitaz Live CD is only 30, but it has a ton more stuff than my CLI thing).
View 4 Replies View RelatedVery often we get to hear Binary / Source when we talk about installing packages...From what I understand "Binary" refers to a natively packaged installation by a Distro wheras installation from Source would entail fetching the files, Compiling and then building the package. When we say "source" where do these codes reside? Is it diffferent for different distros or one common source like "sourceforge.net" or similar?! I know it sounds silly but what is the origin of the source codes??
One general remedy if a package is not found is to install from source... So , source would refer to a "tar.gz" or "bz2" archive present at some location like "[URL]". In some cases , id it possible that some packageas are not available in "Source". When I tried to build a package for a particular distro , I was told that some dependencies are not un the source ...What is the meaning of this? So do all distros maintain the codes in their official repositories?
diff has the ability to trasverse directory structures. cmp has the ability to manage binary files.
I'm looking for something which allows me to compare a directory's contents, including files and subdirectories, and so a binary comparison.
Any suggestions, scripts, etc. which may be of help?
Some of my directories are huge, with huge (image) files in them.
and executing my package on red hat version 2.6.18-164.el5 and displaying no error but my binary is not created what could be problem ??
make[1]: Leaving directory `/root/kartik/POC_SSI_1/iub_dogw/ipr/common/cspl'
gcc -print-file-name=libgcc.a -g -Wall -Werror -D_GNU_SOURCE -r -o /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/bcpapp -lgcc -lc /root/kartik/POC_SSI_1
[code]...
I am working on a project where I need to use the C language to generate a tree of processes. I understand how fork() works but I cant seem to get fork() to create two children from one parent and then have the two children create two more children.
Right now what i am seeing is a chain...where the parent creates one child...and that child creates another ONE child..etc.
Here is what I have so far:
for (i=0; i<n;i++){
if (childpid = fork()) break;
}
if (childpid == -1){
perror ("
[Code]....
On an Ubuntu 9.10 (Karmic Koala) machine, I burned a CD from the command prompt using: cdrecord -v speed=16 dev=0,1,0 /FPS.iso.The CD now contains an executable and some files. I tested the CD by loading it onto another machine (Red Hat 5.3) and when I try to run the program I get the following message:bash: ./FPS1_1: Permission denied.I can open other files like text documents (the executable also comes with shared libraries).I realized I had burned the CD as root so I burned another one as another user but I still have the same problem.
View 2 Replies View RelatedI 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.
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.
The Linux ldd command can show the dynamic libraries used by an executable. It's a bash script.But it seems to be fragile, and does not work on some binaries. Is there an alternative tool? In my specific example, I can use:
% file datab2txt
datab2txt: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.4.0, not stripped
but ldd fails with:
% ldd -v datab2txt
not a dynamic executable
I'm looking for an overview of binary compatible linux derivates to enterprise Linux versions. A usable definition of this compatibility is given on Wikipedia. I already know candidates for this:
CentOS (Community ENTerprise
Operating System) is binary
compatible to RHEL (Red Hat
Enterprise Linux).
SL (Scientific Linux) is binary
compatible to RHEL (Red Hat
Enterprise Linux).
I think there are for sure many more. Who can help? Maybe this will grow into a fine overview... I'd like to edit the question to complete it with the data from answers.