![]() |
|
|
|
|
|||||||
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. Shell Script Page. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| install-discovery script error for X86 | eeisken | SUN Solaris | 0 | 05-18-2008 02:55 PM |
| Script to install jdk | eamani_sun | Shell Programming and Scripting | 5 | 05-12-2008 06:26 PM |
| Failed to install shell script compiler (shc) | alfredo | HP-UX | 0 | 01-30-2008 07:03 PM |
| Install a cron from a Perl script | garric | Shell Programming and Scripting | 2 | 09-13-2007 02:00 AM |
| Can't install a soft with a script .sh | wappyboy | UNIX for Dummies Questions & Answers | 10 | 06-27-2006 02:35 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Help with an install script
Hello all.
I have a script I have written which runs a silent install of Mcafee AV and ePO for Mac OS X. The issue I am wondering about is what happens when the script launches the installers. The script is fairly simple, and just invokes the shell installer for each app: Code:
#! /bin/sh # script to install Mcafee VirusScan and ePolicy Orchestrator 3.6 # cd to temp install directory cd /tmp/Mcafee_Install/ # Launch AV installer installer -pkg VirusScan.pkg -target / # Sleep while AV installer completes install sleep 60 # Next installs ePolicy Orchestrator ./cmdinstall 10.44.112.40:82 # Sleep while ePO installer completes. sleep 120 # Reboot to complete install. reboot My thinking was that once the script has launched the installer, that's a separate process and as far as I am aware, my script would simply continue with the second install immediately. I don't want both apps installing at the same time, or the system rebooting halfway through the second install, so I told the script to sleep for a moment, to give the installs a chance to complete. Am I being silly here? Are the sleep commands necessary? Will the script wait for the install to complete before launching the next install, or rebooting in the case of the second install? Any thoughts? Cheers |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|
|
The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
|
| "inappropriate ioctl for device" 421 service not available, remote server has closed connection ^m autosys awk trim bash eval bash exec bash for loop boot: cannot open kernel/sparcv9/unix close_wait command copy/move folder in unix curses.h cut command in unix dead.letter find grep find null character in a unix file grep multiple lines grep or grep recursive grep unique inaddr_any inappropriate ioctl for device logrotate.conf lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp batch sftp script snoop unix stale nfs file handle syn_sent tar exclude unix unix .profile unix com unix forum unix forums unix interview questions unix mtime unix simulator unix.com vi tab size vi+substitute+end+of+line+character while loop within while loop shell script |