I am using a program that reads in data from a serial port and then sends that data out over a TCP connection. The problem I'm having is that the only way I know to exit the program is to do a 'kill PID', but doing this means the program doesn't go through the motions of closing the TCP connection properly so I have to wait some random period of time for the port to free itself or else when I try to start it back up it tells me that it can't bind to the specified port.The general structure of the program is as follows
It'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
I'm trying to capture incoming/outgoing phone call data. Both telnet and nc have allowed me to easily direct this data to a file for later processing, HOWEVER I can't seem to get either to work as a background process. I want to put the connection into a shell script and run from cron.
I have a script that calls another program/script, xxx, to run in the background. Supposedly this program at most should finish within five (5) minutes so after five (5) minutes, I run some other steps to run the script into completion. My problem is sometimes the program takes longer than five (5) minutes and this is causing problems when running the rest of the steps in the scripts. Can anyone suggest how to re-program my script. At the moment, the KSH script, i.e. test.ksh, is doing as below:
test.ksh: ..... ..... xxx/xxx.ksh <--- program/script called by the script sleep 300 ..... run the rest of the script ..... ..... problem is sometimes xxx/xxx.ksh takes longer than 300 seconds ..... ..... any way that I can monitor that xxx/xxx.ksh finishes before I run ..... ..... the rest of the scripts .....
I noticed that if I have "exit" in a bash script file., e.g. script.sh,that when the word "exit" is reached, and the script file being executed is not in the PATH nvironment, i.e. ". script.sh", the whole konsole shell profile is exited! What gives here? Is there another command compatible to "exit" to prevent this, or will I just have the leave the "." part in the PATH enviroment, which is, to my understanding, is not recommended? I desire for a "goto" function in bash script files
In linux, creating thread is same as process (clone()), except the virtual address space gets shared with the parent.If a running main process(thread) creates new thread, and if main thread exits, why should the new thread too exit? both are different entities, The same doesn't happen if the child thread exits, the parent thread would be alive.
Can't boot into Ubuntu. Using recovery mode, I get fsck exit with status 3 error. I did man on fsck and there is no reference to status 3. Same issue as [URL]
I have my data on sdb3 which is having this issue. File system is ext4. I can't go into shell or anything, I get the fsck error and the system reboots right away and stuck in that loop.
command will just execute and exit with a status of "0" -"Every command returns an exit status (sometimes referred to as a return status ). A successful command returns a 0, while an unsuccessful one returns a non-zero value that usually may be interpreted as an error code. Well-behaved UNIX commands, programs, and utilities return a 0 exit code upon successful completion, though there are some exceptions."[URL]With the command . . .
Code:
# dosfsck -v /dev/sdb
it could be very helpful (and decide my next move) to see the exit code as 0, 1, or 2 . the man page suggests the command exit code will specify if the message I get - "Cluster size is zero" (I think it is a "1")is a recoverable or fixable error by the utility. or is non-recoverable - a pretty nifty feature if I understand this right. [URL] is there anything like this script COMMAND_LAST used in the following link. [URL] that can be entered in the terminal window after - or at end of - my dosfsck command or any command. just to see if it has a 0, 1, or 2 status ?
I'm running Ubuntu 9.10 Karmic and XBMC Live.I get error messages which seem to relate to openvpn.So I tried to remove it with the remove command. This is what I getQuote:
@XBMCLive:/home$ sudo apt-get remove openvpn Reading package lists... Done Building dependency tree
"E: backuppc: subprocess installed post-installation script returned error exit status 1"whenever I upgrade my system I get the above message Anyone know how to fix it? or if it's anything important ?
I am trying to extract a .tgz file. I have used the command tar - xvwzf filename.tar but I get the following error: gzip: stdin: decompression OK, trailing garbage ignored tar: Child returned status 2 tar: Exiting with failure status due to previous errors root@test:/datastore/Newfolder# tar -xvwzf filename.tgz
I have CentOS 5.5 x64 here and I've been trying to build this RPM but I have found no way to get passed this error. RPM build errors: Bad exit status from /var/tmp/rpm-tmp.61655 (%prep)
Code: Select alldone. Setting parameters of disc: (none). Setting preliminary keymap...done. Activating swap...done. Checking root file system...fsck from util-linux-ng 2.17.2
[Code] ....
An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck should be performed in maintenance mode with the root filesystem mounted in read-only mode. ... failed!
The root filesystem is currently mounted in read-only mode. A maintenance shell will now be started. After performing system maintenance, press CONTROL-D to terminate the maintenance shell and restart the system. ... (warning).
Give root password for maintenance (or type Control-D to continue): _
For now, I just don't know what I should to do next to my system has started to work again...
it's a hot day and nothing seems to be going right. Trying to figure a way out of this one - error 127. Looks like it could be Metacity problem? There a couple of pythons that also have a problem.
Code: (Reading database ... 145089 files and directories currently installed.) Preparing to replace metacity-common 1:2.28.0-0ubuntu1 (using .../metacity-
I have been having the worst time trying to get sametime messenger from IBM to install properly. I had it working fine for the last 6 months and yesterday I accidently updated and it all went to {1134}. I seem to have found dkms to be the source of the problem.
I get an exit 0 regardless of whether or not its install or uninstall. I have managed to get pidgin to work for now, but it is no means ideal for my purposes.
I kept getting this... rastlosen@rastlosen-laptop:~$ sudo apt-get install sametime-connect [sudo] password for rastlosen: Reading package lists... Done Building dependency tree
Everytime I install a package or use update manager I get the following message. Code: E: linux-image-2.6.32-22-generic: subprocess installed post-installation script returned error exit status 2 E: linux-image-2.6.32-23-generic: subprocess installed post-installation script returned error exit status 2 E: linux-image-2.6.32-24-generic: subprocess installed post-installation script returned error exit status 2 E: linux-image-generic: dependency problems - leaving unconfigured E: linux-generic: dependency problems - leaving unconfigured E: linux-headers-2.6.32-22-generic: subprocess installed post-installation script returned error exit status 2 E: linux-headers-2.6.32-23-generic: subprocess installed post-installation script returned error exit status 2 E: linux-headers-2.6.32-24-generic: subprocess installed post-installation script returned error exit status 2 E: linux-headers-generic: dependency problems - leaving unconfigured The install/upgrade appears to work but I'm getting concerned about the message continuing for so long.
I am preparing everything that I will be using in my fourth year project which is based on the grid computing concept. My problem is that before I installed ubuntu 10.10, I was using 9.10. And in my previous version (9.10) I was able to install condor through the synaptic package manager comfortably,but after upgrading to version 10.10 am getting the following error after installing condor: "E:condor:subprocess installed post-installation script returned error exit status 127"
I have a desktop environment with Apache2.(If someone asks why desktop to run Apache2, its because the desktop must display a local website)When I update the html files from a windows box it is being copied in a home/user folder.Cron now has to copy the files with r to the localhost area.sudo cp -R home/myself/Downloads/* /var/www/ works fine:The script containing just that one line is in a file in my /home/myself/Documents folder named: copy_site_localhost.Cron entry in turn was created with the command: sudo crontab -e and the entry is:*/10 * * * * /home/myself/Documents/copy_site_localhostThe error in the syslog file in /var/logs is as follows:
.......CRON[1234] (root) CMD (home/myself/Documents?copy_site_localhost) .......CRON[1236] error (grandchild #1234 failed with exit status126) .......CRON{1236] info (No MTA installed, disregarding output)
I am having a terrible time getting any networking to work with a new RedHat Enterprise 6 64 bit install. I am installing on an HP Proliant DL380G7.I have downloaded the driver - hp-netxtreme2-6.2.23-2.src.rpm from the HP website.Followed directions and did the following:1.Build Environment Setup - installed redhat-rpm-config and kernel-devel2.Installed the source (hp-netxtreme) rpm.3. Build the Binary RPM - installed rpm-build and ran the following:rpmbuild -bb /root/rpmbuild/SPECS/hp-netxtreme2.specIt runs through the build process and near the end I get the following:make -C /lib/modules/2.6.3271.el6.x86_64/build UBDIRS=/root/rpmbuild/BUILD/hpnetxtreme26.2.23/obj/default/bnx2-2.0.23b/src modulesexpr: syntax erromake[2]: Entering directory '/usr/src/kernels/2.6.32-71.el6.x86_64'/usr/src/kernels/2.6.32-1.el6.x86_64/arch/x86/makefile:81: stack protector enabled but no compiler supportmake[2]: gcc: command not found
i have a problem and it's been persisting since i installes MST Core fonts.
terminal log is here:
-----------start of pasting -----
user@Ubuntu9:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. code....