Hi,
I want to get the memory utilized by my java process and the percentage CPU utilization in a text file at regular intervals. glance(on HP UX) and top utilities helps me in getting thes...
I run a Perl script, which will shell a process (another Perl script to log data through serial port) and wait for it to terminate, from command line
/exec.pl sample.cfg log.pl &
...
Hi,
I'm writing a ksh script that has to display the dates from a given date up to the present. I'm not sure how I'm going to "count" up from the given date. Also, I would prefer to not us...
How I can create a folder name like current date. Eg: 01012004. On using shell script.
I am not familiar with shell script.
Pls help.
I have a make file with a rule that takes all of the .o files and makes an executable.
The object files are stored in a directory under the directory where the make file is stored ie linuxd...
I have a bash script which is scheduled as a cronjob to run each day. However, I want it to wait for an ftp update before starting. So it should it first check if a file has been updated on an...
I'm running a server which continuously receives data over a network,
processes the data, and stores the processed data in a large
database. The database consists of multiple files which ar...
hi all,
I have a client that want to make unicode text coming from data base converted to image the text is in arabic and the application is for publish (news paper stuff) so the letter have ...
I would like an automated tool(s) that will stress test a serial port like ttyS0. I have a multiport (octal) serial board. I would like to test the driver for flow control, baud rate, etc. But...
I'm using BSD. I want to grep on multiple items. For example I want to find all lines with aaa, bbb or ccc. Does anyone know they syntax?
Hi,
I have written the following crontab file to get the code in 05.txt file executed every 5 minutes
0 * * * * source /var/www/vhosts/20at.com/httpdocs/05.txt
5 * * * * source /var/www/vh...
I thought it would be just like anything else, but for some reason my java program returns a non-zero return code when run from cron. When run from command line it works fine.
This is my co...
Wrote a script to pull all the various Interface IPs from a list of routers. Output from snmpwalk is in the following format:
ipAdEntIfIndex.192.168.100.106 = INTEGER: 10
Want to add a pi...
Hi all,
all I want to do is to delete the string ') somestring' from
the string ' "a", "b", "c") somestring' using sed.
The count of the double quoted strings ist variable.
Cheers,
...
I have an appliication that needs to be constantly running. At the moment I start the application by running it from the command line and occassionaly it will, for some reason, stop running an...
hi
I would like to fork multiple child processes form a daemon process at different time intervals.
i.e. I have one daemon processw hic spawns off 1 child process, then 3 seconds later i...
I would like to be able to call a script from the command line that would capture a screenshot of a webpage and store it as a thumbnail (jpg). I imagine this would be something like open a bro...
Hello @ll,
i'm developing a linux kernel driver for data acquisition. My driver gets an address from user space and want to do a dma to this location. But my driver can't directly access th...
I'm having some trouble writing a bash script to monitor a service.
I was writing it like this.
num = ps aux | grep httpd | wc -l
if($num=0)
restart_apache
It doesnt seem to work....
Hi there,
I'm working on redhat 7.3 and I have a directory with a large number of subdirectories and files. All the file and folder names have spaces in them. Can anyone help with a script ...
This is driving me mad. I know there's going to be a simple solution that I'll smack myself in the head for once I see it!
I have a directory containing full backups ("full"). I have anothe...
Hi,
I'm trying to install backtrack2 on my usb thumbdrive. I was able to extract two folders BT and boot in the the thumbdrive. however i am unable to run the ./bootinst.sh and get the fol...
This is for a C++ program.
I have a program where I fork and exec to create a child process then waitpid to wait for it to end. Then I need to get the value the child process returned but ...
Hi
It is probably a well-know fact that JBoss can not start if you tell it to listen on port 80, because UNIX in general does not allow low port numbers. The solution seems to be to forward...
we want to write a multithreaded program in linux using c++ API.
we included
#include<pthread.h>
and called pthread_create the ld(linker) is giving an
unreferenced function.I think ...