10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Experts,
I am creating a script to monitor a certain applications running in my Unix system.
My script order goes this way:
df -h /of/a/filesystem
tail -5 /path/to/an/application/availability
su -c "jsmon pf=(profile of my application) `echo "p"`" usradm
#EOF
I am... (7 Replies)
Discussion started by: Xworks
7 Replies
2. Programming
Hi All,
I have written a shell script which is using the expect method, it is working fine in terminal window, and then I have executed via python script its also working fine in command prompt functioning properly, I used subprocess.Popen method to execute the shell script file, its working... (0 Replies)
Discussion started by: janaefx
0 Replies
3. Shell Programming and Scripting
Good morning!
I'm trying to add Maven to the system boot by the moment without success.
Testing the operation of the script I realize that the process isn't persistent when the program is launched with the start option.
---- #Startup Script ----
#! /bin/sh
# chkconfig: 345 99 1
#... (5 Replies)
Discussion started by: carpannav
5 Replies
4. Shell Programming and Scripting
I followed the directions here
Free Twitter Source Code ? Twitter Database Server: Install
and created a php script that enters twitter keyword searches into a MySQL DB.
When you execute the files outlined in the above link, a script starts indefinitely.
I've noticed that the scripts... (6 Replies)
Discussion started by: phpchick
6 Replies
5. Shell Programming and Scripting
Hi,
I have a shell script that creates 2 parallel processes. When I press ctrl+c, i want the parallel process to get killed as well.
#!/bin/bash
cmd1="script1.py"
cmd2="script2.py"
${cmd1} &
pid1=$!
echo ${pid1}
${cmd2} &
pid2=$! (7 Replies)
Discussion started by: sana.usha
7 Replies
6. Shell Programming and Scripting
shell script in Unix/Linux to find the lines numbers of a text file are having word which is 5 to 10 characters long and having first letter as a capital letter. (3 Replies)
Discussion started by: usersnehal
3 Replies
7. Shell Programming and Scripting
I need to know how to have a BASH script run every time Firefox is launched, what is the simplest way to do this? (1 Reply)
Discussion started by: glev2005
1 Replies
8. Shell Programming and Scripting
Hi,
I wanted to write a schell program that fetches the values from a file and prints the output as its onerall multiplication.
for example I have a file named abc. it has values 2, 3, 4
now my program should give me 2*3*4 ie 24.
note:this file abc can have any numbers.
so experts,... (9 Replies)
Discussion started by: sandeep.krish
9 Replies
9. Shell Programming and Scripting
#!/bin/csh
# This program will add integers
#
#
# add integer1 ..
#
# Check for argument
if ($#argv == 0 ) then
echo "usage: add integers"
exit 1
else
set input = $argv
endif
#
set sum = 0
foreach var ( $input )
@sum = $sum + $input
end
# (1 Reply)
Discussion started by: haze21
1 Replies
10. Filesystems, Disks and Memory
shell script for sorting,searchingand insertion/deletion of elements in a list (1 Reply)
Discussion started by: jayaram_miryabb
1 Replies