Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Running a script using another script


Login or Register to Reply

 
Thread Tools Search this Thread
# 8  
my concern is that the script is not giving 7 as input to the inside the script while running.

echo 7 is not working ..

---------- Post updated at 10:12 AM ---------- Previous update was at 08:01 AM ----------

first of all the script " start_up " should take option 7 automatically then it should take "c" so many times. When i am running the above script it is not taking option 7 automatically.. that mean " echo 7 " is not working or any small thing i am missing .. i am confused .. please any help ?
# 9  
Untested:
Code:
counted_loop() { # TIMES CHAR
# Prints TIMES and then loops 
# to print CHAR that many TIMES
    C=0
    start_up<<EOF
$1
$(while [$C -lt $1 ];do echo $2;((C++));done)
EOF
}
### START IT ###
counted_loop 7 c

hth
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Script will keep checking running status of another script and also restart called script at night
ketanraut
I am using blow script :-- #!/bin/bash FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not if then # echo "process found" exit 0; else echo "process not found" exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ...... Shell Programming and Scripting
1
Shell Programming and Scripting
Shell Script for continuously checking status of a another script running in background, and immedia
ketanraut
Hi, I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help.. i am using below command to run script nohup system_traps.sh & but in some...... Shell Programming and Scripting
9
Shell Programming and Scripting
script for reading logs of a script running on other UNIX server
vandana.parwani
Hi, I have a script, running on some outside firwall server and it's log of success or failure is maintained in a file. I want to write a script which ftp that server and reads that file and checks the logs and if failure , I will send mail notification. Please let meknow if I am not...... Shell Programming and Scripting
1
Shell Programming and Scripting
Running a unix script(which is calling another script inside that) in background
rohithji
Hi all, I am having a script ScriptA which is calling a script ScriptB in the same server and copying files to second server and have to execute one script ScriptC in the second server. THis First script ScriptA is the main script and i have to execute this process continously. for Keeping...... Shell Programming and Scripting
2
Shell Programming and Scripting
How to stop a script running in remote server from local script
mannepalli
Hi, I have googled for quite some time and couldn't able to get what exactly I am looking for.. My query is "how to stop a shell script which is running inside a remote server, using a script"??? can any one give some suggestions to sort this out.... Shell Programming and Scripting
1
Shell Programming and Scripting

Featured Tech Videos