0

I want to restart CACHE(database that I am using) Instance from shell script. What I did is created a function in the shell script named restart_cache.

restart_cache()
{
 ccontrol stop instancename restart
}

This command is running but the control goes to cache and while stopping cache it gets stuck waiting for an answer here:

Do you want to broadcast a message to anyone? No =>

How can I pass the value here through shell script

Ajit Nair
  • 435
  • 2
  • 10
  • 19
  • Piping your command after echo| does not work? – vpram86 May 28 '13 at 09:19
  • I don't know that database, but it's possible ccontrol has an option not to ask. Try running ccontrol with -h, -?, --help or --nosuchoption to see if it spews out a help message. *If all fails, read the instructions*. :-) – Jens May 28 '13 at 10:10
  • It is a database from Intersystem. You can search for Intersystem cache – Ajit Nair May 28 '13 at 11:20

1 Answers1

1

If you want to accept all of the defaults, you can use

ccontrol stop instancename restart quietly
Brandon Horst
  • 1,921
  • 16
  • 26