12-09-2011
Replace this line "dd if=/dev/urandom of=/dev/sda" in your code with the while loop.
When you're posting a reply, look for 7th button to the right of bold button "Wrap [CODE] tags around selected text"
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all!
I wirte a little Shell Script, that kill pids by programm names. For example, when i want to kill any pid of xmms i use this command:
kill -9 `ps -A | awk ' ($4=="xmms") {print $1}'`
To put this in a "killprg" script i use the following linkes:
#!/bin/bash
echo ""
echo "Programm... (2 Replies)
Discussion started by: donald1111
2 Replies
2. UNIX for Advanced & Expert Users
Hi All,
I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages.
How can i terminate this daemon ? ? ?
Regards,
Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies
3. Shell Programming and Scripting
hello Bros,
I need to write some script that i can put it on crontab which checks for a process X if running. If the process X is ruuning then take the PID and kill it or display message that says process X is not running.
I am using AIX 5.3
Thanks guys.:b: (2 Replies)
Discussion started by: malcomex999
2 Replies
4. Shell Programming and Scripting
Hello,
I would like to make a script, ideally in perl since I am most familair with it, that does the following:
automatically starts up at 9 pm, searches through a specified directory for any new files, finds those new files and starts to run them through a pipeline. I have most of it worked... (4 Replies)
Discussion started by: amcrisan
4 Replies
5. Shell Programming and Scripting
Hello all... new to these forums and a bit of a newbie with linux aswell.
I need to figure out how to write a shell script to kill a process by name as given to the script as an argument. I've got that part working OK, but i need to make sure that the script does not allow processes that are... (6 Replies)
Discussion started by: cannon1707
6 Replies
6. Shell Programming and Scripting
Hi,
I wrote a script to kill a process id.
I am able to kill the PID only if I enter the root password in the middle of the execution because I did not run as root i.e after i run the script from the terminal, instead of killing directly, it is killing only after entering the pass when it... (12 Replies)
Discussion started by: rajkumarme_1
12 Replies
7. Shell Programming and Scripting
Hi ,I need your help to kill the script itself if run for more than 10 mins .
main.sh
nohup ./a1.sh param1 &
nohup ./a2.sh param1 &
wait
#Wait for 2 scripts to complete and and kill the process if run more than 10 mins
---
Thanks inadvace
MR
Please view this code tag... (2 Replies)
Discussion started by: mohan705
2 Replies
8. Shell Programming and Scripting
Good afternoon
I need to KILL a process in a single command sentence, for example:
kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'`
That sentence Kills the process ID corresponding to the program CAL255.4ge.
However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies
9. Shell Programming and Scripting
Hi,
I have an expect script where in i am trying to scp a folder but it is getting timed out. Any help will be appreciated. (I don't have the option for sharing keys)
expect -c 2> /dev/null " spawn scp -r -o NumberOfPasswordPrompts=1 -o StrictHostKeyChecking=no root@10.10.10.10:test_dir... (2 Replies)
Discussion started by: temp_user
2 Replies
10. UNIX for Dummies Questions & Answers
I'd like to terminate scripts.
These scripts are not by me, but other persons. These contain other programs such as ping, nmap, arp, etc.
If such a script is running, how can I terminate this script AND all processes called by this script?
These scripts are big so terminating all programs... (4 Replies)
Discussion started by: lordofazeroth
4 Replies
LEARN ABOUT SUSE
tk_dialog
tk_dialog(n) Tk Built-In Commands tk_dialog(n)
__________________________________________________________________________________________________________________________________________________
NAME
tk_dialog - Create modal dialog and wait for response
SYNOPSIS
tk_dialog window title text bitmap default string string ...
_________________________________________________________________
DESCRIPTION
This procedure is part of the Tk script library. Its arguments describe a dialog box:
window Name of top-level window to use for dialog. Any existing window by this name is destroyed.
title Text to appear in the window manager's title bar for the dialog.
text Message to appear in the top portion of the dialog box.
bitmap If non-empty, specifies a bitmap to display in the top portion of the dialog, to the left of the text. If this is an empty string
then no bitmap is displayed in the dialog.
default
If this is an integer greater than or equal to zero, then it gives the index of the button that is to be the default button for the
dialog (0 for the leftmost button, and so on). If less than zero or an empty string then there will not be any default button.
string There will be one button for each of these arguments. Each string specifies text to display in a button, in order from left to
right.
After creating a dialog box, tk_dialog waits for the user to select one of the buttons either by clicking on the button with the mouse or
by typing return to invoke the default button (if any). Then it returns the index of the selected button: 0 for the leftmost button, 1
for the button next to it, and so on. If the dialog's window is destroyed before the user selects one of the buttons, then -1 is returned.
While waiting for the user to respond, tk_dialog sets a local grab. This prevents the user from interacting with the application in any
way except to invoke the dialog box.
EXAMPLE
set reply [tk_dialog .foo "The Title" "Do you want to say yes?"
questhead 0 Yes No "I'm not sure"]
SEE ALSO
tk_messageBox(n)
KEYWORDS
bitmap, dialog, modal
Tk 4.1 tk_dialog(n)