12-22-2006
help for automated script
Hi ALL:
I need to write a script that will start bunch of servers. and these servers each has a sudo account and they need a passowrd.
I dont know where to start and look.
Can you please give me some hints or some sample code.
Thanks in advance.
splax
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
I have a system with 3 O/S on it ( win 32, RHEL 4 32 & 64)
I'm very new to shell scripting and I'm seeking for help in this matter..
I want to have an automated script on REDHAT that would run/open multiple applications one after other timed out at 20 seconds interval.
Eg:... (4 Replies)
Discussion started by: uneex
4 Replies
2. Shell Programming and Scripting
I'm totally new to shell scripting and I would like to ask your help
1.i want to have a .sh script where it runs opening 2 applications one after another
2.i have 2 applications in
/applications/app1
/applications/app2
3. want this script to launch app1 for 20 seconds and get killed... (2 Replies)
Discussion started by: uneex
2 Replies
3. Shell Programming and Scripting
Ok, I am sure this has been beat like a dead horse, but I an trying "anew". I am trying to create a script that will automate a file transfer using sftp. Please, I am at rock bottom. Thank you. (2 Replies)
Discussion started by: klindel
2 Replies
4. Shell Programming and Scripting
echo "Enter your choice :\c"
read num
case $num in .
1)"${TEST_HOME}"/ctrl_extract.ksh 1 ;;
2)"${TEST_HOME}"/ctrl_extract.ksh 2 ;;3)"${TEST_HOME}"/ctrl_extract.ksh 3 ;;
4)"${TEST_HOME}"/ctrl_extract.ksh 4 ;;
5)"${TEST_HOME}"/ctrl_extract.ksh 5 ;;... (3 Replies)
Discussion started by: arghya_owen
3 Replies
5. Shell Programming and Scripting
Hi All,
I am writing an automated SFTP script to xfer files. I am able to do sftp in batch mode and it is working absolutely fine.
The problem is that on redirecting the output of SFTP session to some file, it is not writing about the status of SFTP operation. All i can see in output file is :... (6 Replies)
Discussion started by: aggar_y
6 Replies
6. Shell Programming and Scripting
HI,
Can anyone has automated sftp script?
I want to upload one file from one server to other.
Could anyone help us? (3 Replies)
Discussion started by: javeed7
3 Replies
7. UNIX for Dummies Questions & Answers
I want to create an automated backup script that will copy files to different directories for different days. I will use a detachable USB drive, under SCO 5.0.7. I am very new to Unix, and will require most of the script. Thanks (5 Replies)
Discussion started by: Bennieinbots
5 Replies
8. Shell Programming and Scripting
Hello,
I am scripting noob but I need little monitoring script.
It will be very good if you can help me.
What I need:
Script will login via ssh to another machine (ssh -l user ipadress), make top command and log first row + machine ip. It should monitor like 10 machines.
Script should run... (1 Reply)
Discussion started by: Biosko
1 Replies
9. Shell Programming and Scripting
Hello, how can I write a shell script that looks in running processes and if there isn't a process name containing 91.34.124.35 then execute a file in a certain place.
I know PHP, in PHP I could do a preg_match_all but I don't know how to do it in shell. (5 Replies)
Discussion started by: nottingham
5 Replies
10. Shell Programming and Scripting
Hi,
I need a script to execute below task. As of now I am doing it manually and want it automated.
1)go to below path
cd /path/of/file
check for the availibility of two file as below of the latest date.
test.week1.data
test.week2.data
Case1. If above files are not present... (3 Replies)
Discussion started by: sv0081493
3 Replies
IOK(1) General Commands Manual IOK(1)
NAME
iok- Indic Onscreen Keyboard
SYNOPSIS
iok [-a] [-h] [-d 1] [-n LANGCODE]
DESCRIPTION
Indic Onscreen Keyboard currently shows Inscript and Inscript2 keymaps for 22 official Indian languages. The languages are Assamese,
Bengali, Bodo, Dogri, Gujarati, Hindi, Kannada, Kokani, Maithili, Malayalam, Manipuri, Marathi, Nepali, Oriya, Punjabi, Sanskrit, Santali,
Sindhi, Tamil, Telugu.
The iok application runs in default and advanced mode. In default mode, iok starts by loading Inscript2 keymap of the current locale.
If keymap is not installed or available then iok shows keymap list in the default mode. User can then select any keymap from keymap list if
he want to write using it.
In the advanced mode, iok allows to open non-supported keymaps. If keymap can be parsed by iok then it will be showed in iok UI other-
wise it will show error message that iok can't load this keymap. Advanced mode also allows to create custom keymap by either swapping or
re-assigning character mappings in the existing loaded keymap in iok.
Another feature iok supports is Drag and Drop. This will allow user to swap character mappings using mouse.
The keymap list shows Inscript and Inscript2 keymaps from location /usr/share/m17n and ~/.m17n.d path.
To start iok in normal mode from console, use following command iok
To start iok in advanced mode from console, use following command iok -a
To start iok in any supported Inscript2 keymap (say in Marathi) use following command iok -n mr
As Inscript2 keymap naming also uses language script code for some languages, command to open those keymaps is like this iok -n pa-guru
where pa is a isocode name for the Punjabi language and guru is a language script code name in which keymap is written.
To use Drag and Drop feature of iok, start iok from console as iok -d 1 The Draft version of Inscript2 keymaps are available at
https://fedorahosted.org/inscript2/
This project is available at http://fedorahosted.org/iok/ or http://iok.sourceforge.net
OPTIONS
-a It shows the menus and combo box in iok UI
-h It show the help
-d 1 This will enable Drag and Drop feature only for the single iok invocation. Otherwise iok has disabled Drag and Drop by default.
-n LANGCODE
In the place of LANGCODE,you need to specify a particular language code. Shows iok UI for that particular language. This will also
requires language script code. e.g. for Bodo, Dogri, Kokani, Nepali, Sindhi use its langcode and "-deva" as a language script
code.
To start iok using Kokani keymap, run "iok -n kok-deva"
AUTHOR
Suji A <suji87.msc@gmail.com> , Parag <pnemade@fedoraproject.org>
March 12, 2012 IOK(1)