I need to reboot a Linux box from a user space process. I want to have the following behavior:
sync file systems
not attempt to gracefully stop processes, go to runlevel 5/6, etc., for I assume things are bad and that would fail
Can those requirements be achieved together at all?
I was planning to write a 'b' into proc/sysrq-trigge...
After I installed Aptana (install directory: /usr/share/aptana )
I keep getting errors like this:
An SWT Error has occurred, you are
recommended to exit the workbench.
Subsequent errors may happen and
terminate the workbench without
warning. See the .log file for more
details.
looking in the logs I see this:
!MESSAG...
How can I access Microsoft Access databases in Python? With SQL?
I'd prefere a solution that works with Linux, but I could also settle for Windows.
I only require read access.
...
I would like to do something like:
find . -iname "*Advanced*Linux*Program*" -exec kpdf {} & \;
Possible? Some other comparable method available?
...
And how can one find out whether any of them are occuring, and leading to an error returned by fork() or system()? In other words, if fork() or system() returns with an error, what are some things in Linux that I can check to diagnose why that particular error is happening?
For example:
Just plain out of memory (results in errno ENOM...
How can I find out how big a Linux process's page table is, along with any other variable-size process accounting?
...
Let's take example of a command "example-command".
I open terminal
I write example-command in terminal, and example-command executes.
Now if I close terminal, example-command gets killed too.
I now try with "example-command &", but the same behaviour.
How do I execute a command so that when I close the terminal, the command doesn't g...
Alright, I know this is a simple question, but I can't seem to get this sed command to work. I'm trying to get a text file and replace one bit of it from placeholder text to a study code. The study code that it is going to replace it with is passed into the script using arguments when the script is first ran. The problem is, when I tr...
I have a mac mini on which I do some iphone and other experimental development. It is hideously slow to build some of the larger projects I have tried out (like 3d engines and such). There are some support for distributed builds with distcc and I have a quad core linux box just standing idle beside it.
The question is: is it possible to...
I have a chunk of fairly random binary data. I want to find where that chunk exists in a file, how many times it occurs, and at what byte (or sector) offsets. Any ideas on how to do that?
Thanks,
Justin
...
My company has a software product that's written in C for a Linux platform, built with autotools and distributed via binary packages. To make the binaries, we first produce a source RPM and then compile the source from the SRPM.
Currently we only provide RPM packages for 64-bit Fedora 10, but we want to start providing packages for mul...
Let's say I'd like to start a small linux distro before my ordinary operating system start.
BIOS load MBR and execute MBR.
MBR locates the active partition which is my linux partition.
Linux start and I perform what I need to do.
Linux shut down and I switch to Real Mode again.
The original partition boot sector is loaded and my ordina...
When I first began bash scripting I spent a lot of time online trying to find resources for various tasks and things were scattered across tons of different forums and newsgroups.
I'm not completely sure if the idea of a list of resources for those new to bash scripting is something fitting of SO's community wiki or not. I'm posting on...
Is there a way to start a script from another process, so that if the process dies/ends, the script still continues?
Will setuid do this? If I were to set the owner to root, and then start the script?
For example, if I have some PHP code starting a script, but httpd dies or gets killed, I think that it takes my script with it. Is the...
We have an stub that we are launching from inittab that execv's our process. (ARM Linux Kernel 2.6.25)
When testing the process it fails only if launched from inittab and execv'd. If launched on the command line it work perfectly, every time.
The process makes heavy use of SYS V IPC.
Are there any differences between the two launch m...
I need to launch a server side process off a mysql row insert. I'd appreciate some feedback/suggestions. So far I can think of three options:
1st (least attractive): My preliminary understanding is that I can write a kind of "custom trigger" in C that could fire off a row insert. In addition to having to renew my C skills this would r...
I have a directory src/ that contain many .cc files and its binary.
For example:
src/
|_ foo.cc
|_ bar.cc
|_ qux.cc
|_ thehead.hh
|_ foo (executable/binary)
|_ bar (executable/binary)
|_ qux (executable/binary)
|_ makefile
In reality there are many .cc and executable files.
I need to remove those binaries in a glob...
can have some sample programs using netlink sockets with firewall protocol. i found but giving some errors like segfault core dump. and error code -22. so need better one iam very new for socket programing. please help me
...
The --package option for Shoes appears to be missing on Linux.
./shoes.run --package
Any ideas where it is?
...
I want to run a process in bash and save in an env variable the number of seconds it took to run.
How would I do such a thing?
...