hi dear friends and good morning
The following question may be complicated and critical for my systems
I have 4 Linux machines with cluster
My target is to find all kind of IP address (xxx.xxx.xxx.xxx) in every file in the linux system
remark: need to scan each file in the linux system and verify if the file include IP address if ye...
Hi All,
I am fairly new in the domain of GUI designing and development. I do have some prior experience but that is with Visual Basic.
I would like to develop a reasonably comprehensive (though not state-of-the-art) GUI application on linux based on a command line app. that I have. Having done some googling, I do find that there a...
When executing a bash script located on my FUSE filesystem, an open() call is made with these flags:
debug,cpfsfuse.c(62),cpfs_fuse_open: path "/make.sh", flags 0100040
The flags (0100040) should correspond to those passed in parameter 2 of open(). The unknown flag originates from an execve() call:
matt@stanley:~/cpfs/dir$ strace -f ....
hi all
how to verify if the file is binary or text without to open the file
remark: the solution must be absolute
lidia
...
Possible Duplicate:
linux + verify if file is binary or text
hi all
how to verify if the file is binary or text without to open the file
remark: the solution must be absolute
lidia
...
Hello,
The host of a server I work on just today turned off the site after x-cart was installed because the following commands were issued on the server and they think it's a security breach:
ls -la 2>&1
id 2>&1;whoami 2>&1;
id 2>&1
mkdir 123
pwd 2>&1
echo 1
The server is running linux (of some kind, not sure what..) and there is no...
Folks, in my application I'm using clock_gettime(CLOCK_MONOTONIC) in order to measure the delta time between frames(a typical approach in gamedev) and from time to time I'm facing a strange behavior of clock_gettime(..) - returned values occasionally are not monotonic(i.e prev. time is bigger than current time).
Currently, if such a pa...
Hello,
I would like to now what happens if yum starts updating and during update user (force)shuts down computer ? What are the dangerous parts of update process if user shut down pc ?
...
Hello,
I would like to know does yum keep cash of downloaded packages if update was not successful, for example during update computer was restarted, but some packages were downloaded.
Will it redownload already downloaded packages or will continue downloading others ?
Actually keepcache option in config file says that it keeps downlo...
I need to run the following command in a folder containing a lot of gzipped files.
perl myscript.pl -d <path> -f <protocol> "<startdate time>"
"<enddate time>" -o "0:00 23:59" -v -g -b <outputfilename>
My problem is that the command does not take gzipped files as input. So, I would need to unzip all those gzipped files on the fly and...
I'm using select() call to detect input presence in the main cycle of my program. This makes me use raw file descriptor (0) instead of stdin.
While working in this mode I've noticed that my software occasionally loses a chunk of input at the beginning. I suspect that stdin consumes some of it on the program start. Is there a way to prev...
I'm having trouble with gdb and loading debugging information from shared libraries.
The error I get when running from within gdb is:
>>run
Error while mapping shared library sections: libhmmm.so: Success.
....
....
>>break container_main
Error cannot access memory at 0x9f18
The shared library in question exists and is located in the...
Is there any command in Linux through which i can know if the process is in hang state.
...
Can you please explain me, why despite of great ruby popularity for web applications thanks to rails framework it is still not used or very rarely used by linux users to create system apps/scripts. We can compare it to python, witch not only has django and others for web applications, but is also commonly used as scripting language in li...
chdir can be used for constant character paths (it takes a const char *), but not for paths inputted by the user (since they have type char *). Is there any way around this?
...
Suppose I want to completely take over the open() system call, maybe to wrap the actual syscall and perform some logging. One way to do this is to use LD_PRELOAD to load a (user-made) shared object library that takes over the open() entry point.
The user-made open() routine then obtain the pointer to the glibc function open() by dlsym()i...
Hello,
my development server has a running Gnome-Desktop. I am connected to it by a ssh session. The Gnome-Session and the ssh session are running with the same user.
How to I start a Gnome-application (for example gedit) from the ssh remote session so that it appears on the remote servers Gnome-Desktop?
Thanks a lot,
Hacksteak25
...
Hi,
I have got an archive of many fonts but i have troubble extracting them all into one folder. i tried to write a long script for 3 hours now, it somehow breaks on a path issue. i tried piping like find . -name *.zip|unzip -d ~/fonts but it doesnt work. i changed so much in the script i wrote, that it is not really presentable :(.
eac...
hi there. i've got a problem: sometimes (not regularly) recv returns -1 and errno == EAGAIN while using epoll in edge-triggered mode. piece of code:
server_sock = startup(&port);
if ( (epollfd = epoll_create(4096)) < 0) {
perror("epoll_create error");
exit(EXIT_FAILURE);
}
ev.events = EPOLLIN | EPOLLET;
ev.data.fd = server_soc...
What is the use of waitpid()?
...