General :: Create A C Program For An Orphan Process?
Jan 11, 2010How to create a c program for an Orphan Process ?
View 5 RepliesHow to create a c program for an Orphan Process ?
View 5 Repliesi am bit confused about the two process that is zombie and orphan procees,both is different so what is the exact difference between the two process that makes it different and if there is no parent process then init adopts the children in both the case.
View 5 Replies View RelatedIt's called TextRipper and it creates indexable and editable text files from any image. Feel free to copy TextRipper; it's licenced under GPL. My troubles are with cracking passworded pdf's. (As you can see, I meant any when I said any image.)
I can't find a way for the user to cancel the decryption process by exiting the script without pdfcrack orphaning. Line 349 works the rest of the time; the concerned process is line 228. I believe it's a piping/subshell problem. At least that's how I've been going at it in vain.
I've made portability a priority and that the comments still require updating.
Code:
If the result is one output file, TextRipper will open it for you in OpenOffice Writer.
Otherwise all txt output files (editable and indexable) will be in the original file's directory." 0 0
How do I create a program file for a new program?
View 1 Replies View RelatedI had an interview , where the interviewer asked me the question "How to create and call a process in unix". I answered that we can use the command
FORK()/ CLONE() to create a process.
But I didn't have the answer for the second question, how to call a process.
On occasion I see my bandwidth usage using the gnome system monitor going up to 300kbit/s. I just cant figure out what is causing it. I want to know what process or program in using my network like that? I do ssh into different machines and servers, where I would really like to beable to monitor bandwidth usage. It would be very useful to know which utilities people use to see what bandwidth is being used and by which applications / programs / processes / or threads. I don't even know where to start looking. The two small programs I have found are insufficient. bmon and bwm-ng. And tools like wireshark (packet sniffers) are over kill. I would like some thing in the middle, preferably text console based.
View 3 Replies View RelatedCode:
root@sok-HP-ProBook-4520s:/usr/local/etc# motion
[0] Processing thread 0 - config file /usr/local/etc/motion.conf
[0] Motion 3.2.12 Started
[0] Motion going to daemon mode
[0] Exit motion, cannot create process id file (pid file) /var/run/motion/motion.pid:
I have already tried trickle and wondershaper. I need a program that can limit the speed of download/upload of an already running program. Similar to the how NetLimiter in Windows limits already running processes. Using Linux.
View 1 Replies View RelatedI wonder how one can, if at all, run an X program in the background *in an emulator sub-shell process*. What I mean is to launch a program in an emulator, e.g, by xterm -e gedit
but with gedit (in this example) running in the background from inside the xterm sub-process, so that the xterm will accept other commands. In the above, gedit will run in the foreground, and of course, if you do
xterm -e gedit &
then xterm will run in the background, not gedit.In short, I would like to achieve the same thing as "gedit &" as you manually do in xterm, but from another shell. What I aim to do is write an X init script to achieve this result (to have the emulator open and a program or two running from it, in the background, at the X startup).
First post from a very new Linux user....I am trying to create a BASH script that will allow user to provide multiple directory names, Checks if the directory exists and if not create the directory.
I am using the following code:
Which works fine as long as the user enters a single directory name. How can I modify this so it will process all directory names user enters on the read response?
1. I need help to create a interface to run software.2. The software is running at the back
View 4 Replies View RelatedI have created a simple download schedular with source-code give below :
---------------------record_strokes.sh-------------------
touch /home/student/packs/lynx/logfile
lynx -cmd_log /home/student/packs/lynx/logfile
[code]....
Since I own one of those Centrino based Core 2 notebooks that create annoying buzzing noises when idle (= entering C3 or C4 power saving states), I'm looking for a program that creates artificial CPU usage. It should allow me to limit the CPU usage to a certain percentage (I know that there are a lot of easy ways to create 100% usage ;-).
Another option would be to disable the C3 or C4 states, but in newer kernels the sysfs interface to set the max_cstate on-the-fly was removed for some reason, and I don't always want to reboot after switching from AC to battery (and vice versa).
Is it possible to create a symbolic link that include commands for the program?
For instance, I do the following to start the program:
./script -somecommannd
I would like to create a symbolic like that includes "-somecommand"
Is this possible? or would I need to create a second script that executes that command, and link to that script?
When I add the line (sleep 5 ) & in the script then the "while read" loop does not read all lines from the file, but only prints the first line.But when I remove the ( sleep 5 ) & from the script, then the script prints all lines as defined in the file.And how to solve the problem? I want to create a new process (for which the sleep is just an example) in the while loop:
$ more test
#!/bin/ksh
while read -r line ; do
[code]....
It seems like everything is configured correctly but NTP will start, sync once or twice in the first hour, then never sync again.. Below are signif lines from my /etc/ntp.conf files.
Server:
----------
tos orphan 9
server BOGUS_1 # Must operate in orphan mode
server BOGUS_2
[Code].....
Are you using one of these ? : deb or rpm orphan ? Are they ok to remove old packages not used anymore , or have you got some others tools or intesresting tips for doing so
View 2 Replies View RelatedIt seems like everything is configured correctly but NTP will start, sync once, then never sync again.... Below are key lines from my /etc/ntp.conf files.
Server:
----------
tos orphan 9
server BOGUS_1 # Must operate in orphan mode
server BOGUS_2
[Code]....
I had let it run over the weekend. It did not update so it is not just this one time. It never syncs again.
I have a process that seems to be unexpectadly quitting. Checking the messages log I could not find anything out of the ordinary. Would anyone here know how to make a process unkillable or lock a process somehow? I read information on doing this by making a looped iso, however the process im starting requires to be able to read/write to the files in the iso so this is not going to work. For now I just niced the process to top priority but I dont really think that will work. This process is a voice server so I dont want people getting discouraged that the server will not stay up and decide not to use the free service im offering.
Would anyone else have any insight as to what I can do? Im not new to linux but im not familiar enough with how every command is used, so if at all possible please give me the commands that need to be executed.
I want to access the process control block to retrieve a process' pid and priority. Any code or the steps to do it.
View 9 Replies View RelatedI did a cleanup on old user ids on my server several months ago. One of the user ids was 1005.. When i check the quota page on webmin, it says that userid 1005 is using 8.40 GB on the system, but I can't find those files anywhere! The home folder was deleted with the user ids, so I'm not sure what the username was to begin with.If I check the passwd file - there is no 1005 listed. So i did a find / uid 1005 and I tried a find / -nouser command.. Neither list files owned by 1005. How can I find where those 8.4 GB of files are?edit: when I do a du -sch * to find space being used.. there is only 5 folders within the /home that could have 8G in there .. (assumeing du -sch shows all files, including hidden).. du -sch * from / shows only possible location is in the /home folder
View 4 Replies View RelatedThe janitor wants to remove certain applications (svn, virtualbox) which I installed the easy way by going straight to the top and installing a GUI... I then realised the GUIs sucked, so I removed them. Now the computer janitor wants to remove virtuallbox, svn, and who knows what else all because of those stupid packages! how to mark certain packages as deliberatley installed so the computer janitor will take them and their dependencies off the list and let me clean things up?
View 2 Replies View RelatedI am playing around with RH for the first time. I have two applications which insist on using names for network ranges - so they need /etc/networks. I created one on the RH box as suggested via google but the apps still cant see the names (basically they are not reading /etc/networks). What is the correct process to create network names on RH? Basically the equivalent of solaris /etc/networks?
View 4 Replies View RelatedI looking for a program for automatic or remote reboot process...
Soon I order a VPS and needs a Call of Duty (or other games too) server restarter, if its crash...
I want to execute a program at the very last step of Linux boot process. For Debian based Linux distro that uses BSD boot process, I came up with 2 solutions:
1) I should somehow call my program from the /etc/rc.local script (although is this the last step of the boot process?)
2) Use the "multi_end" and "sysinit_end" hooks for executing it at the end of rc.multi rc.sysinit respectively (I don't know how to do it though).
SuSE 11.2, KDE 4.2 after logging in to runlevel 5: I have a process which is calling every 5 seconds /sbin/usbmod (which doesn't exist, hence I get lots of errors when I go to the screen with the boot messages). I want to know which process does the calling. How can I find out?
View 4 Replies View RelatedAre there any commands or software that can do any of the following:
cache cleaner
orphan removal
I have a project that I'm working on now that is using Ubuntu 8.04LTS to create a reverse SSH proxy for a telnet process. We have the box logging in with RSA keys so that it can automatically connect to the SSH host on our end. We are using autossh to keep the connection up and running.
We have rolled out 3 of these and they are working very well. We ghosted the original, changed the hostname, changed the IP info, and regenerated the SSH keys. Now I need to clone 35 more. I want to try to do this as efficiently as possible and can script the changes in the hostname, IP, ect.
Can I batch create RSA keypairs on my workstation and then copy them over as a part of the batch? My current other option is to login to each of them and generate the pair. I would like to just install the drive and ship it and not even have to boot it up.
I"m trying to kill some processes that are interfering with airmon-ngWhen I run airmon-ng and tell it to turn on monitor mode on a given interface it says:Code:Found 5 processes that could cause trouble.If airodump-ng, aireplay-ng or airtun-ng stops working aftera short period of time, you may want to kill (some of) them!
PIDName
20875wpa_supplicant
20879NetworkManager
[code]...
There are two host agent process ( hprsmha -WD and RSMHA ) running on my SLES 10 server suddenly hangs which is critical for my daily scheduled backup jobs.I want to create a script which checks for the 2 process and restart it automatically.so i can put it to daily cron job.My knowledge with scripting is so poor. Following are the commands i am running manually to stop and start the process.
cd /etc/init.d
./hprmsha stop
./hprsmha_wd stop
./hprsmha_wd start
./hprsmha start