× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Rob,

When you run those commands in batch, you don't get the "press enter" messages. 
All you should need to do is dump the commands you've listed below into a file 
in the IFS and you should be all set.

Matt

-----Original Message-----
From: rob@xxxxxxxxx [mailto:rob@xxxxxxxxx]
Sent: Friday, November 19, 2004 5:00 PM
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] qshell script to drop servers


According to:
http://publib.boulder.ibm.com/pvc/wp/502/smbi/en/InfoCenter/wpf/inst_startstop.html

to stop and start a server I can do it through the webadmin client or via 
qshell.  I'd like to do it via qshell scripts in order to put it in backup 
procedures, etc.

So, I am thinking I need to create a qshell script like the following:
# Stop the Websphere portal instances
cd /QIBM/ProdData/WebAS5/PME/bin
stopServer -instance WAS5Portal WAS5Portal -user MyUser -password MyPwd
stopServer -instance default server1 -user MyUser -password MyPwd
# end of file

Then I can run it with something like:
STRQSH CMD('/Operations/DownServers.sh')

Next I'll have to start figuring out how to handle:
- The "Press Enter to end terminal emulation" screen.
- Exception handling.
- Logging

Pretty simple, or do I need a book on QSHELL scripting?  Will some freebie 
infocenter link do it, or do you recommend one of the books at
http://store.midrange.com
like "QSHELL for iSeries"

Rob Berendt
-- 
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com

_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.