Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
iwconvert in batch mode? (i.e., no prompting)
System
Does anyone know if iwconvert has an undocumented command line switch to not prompt with the following message each time it runs? I want to run successive calls to iwconvert from a CMD file, but need to sit there and enter Y or N for each?
iwconvert: 5.5.2 Build 9955 Interwoven 20020715
***************************************************************
***************************************************************
Before running this command, please ensure that:
1) You have run iwfsck -d on your source backing store to
prepare for conversion.
2) You have obtained the latest version of iwconvert from
support.interwoven.com.
3) You are running TeamSite 4.5.1SP2, 5.0.1SP2 or higher,
with all available patches, on your source machine.
Completing these actions will optimize the migration process.
***************************************************************
***************************************************************
Do you wish to continue (y or n):
Find more posts tagged with
Comments
Migrateduser
An old windows trick might help here: we used to run commands in batches like this:
echo y | iwconvert
The "y" (plus a CR) is piped into the iwconvert process, automating the keypress for you. Seems to work for iwconvert--it at least gets past the first prompt.
bw
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden
Migrateduser
Thanks... I actually ended up doing the opposite. I created a binary file yes.bin with a Y and a <CR> in the file and redirected it into iwconvert at run time.
(e.g., iwconvert {..parameters...} < yes.bin )
It accomplished the same thing.
Migrateduser
Bob,
I found in the Backing Store Conversion Best Practices guide (that is part of the upgrade supplement), that you can provide the -g parameter on the command line to supress prompting for iwconvert. I hate it when they have undocumented parameters!!!
Sebouh
Migrateduser
Thanks for the tip. It may have been added in a later rev of iwconvert.
bw
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden
Migrateduser
It may have been added, but iwconvert -? doesn't show it.
Sebouh
Adam Stoller
The '-g' option was intended for invoking iwconvert through the GUI - if it happens that it works in your case for doing a non-prompted conversion, great, but that wasn't the original purpose for the flag (and although it probably *should* be documented, it does tend to explain why it wasn't)
A bug should probably be filed (if it hasn't already) to amend the documentation - at least to the fact of the existance of the '-g' flag for use by the GUI, and potentially to offer it as a means of bypassing the prompts even when being used from the command line (I'm not 100% positive that there isn't some other as-yet-unknown side-effect of using it when running iwconvert from the command line)
--fish
(Interwoven, Curriculum Development)
sample file_PB-TPC.txt
Migrateduser
I'll let you know what happens. So far the biggest thing I've seen with running it from the command line is that while it is converting it returns lines like:
GUI cloned 400 bytes 52444939 errors 0 warnings 0
Which I assume is used by the GUI to update the progress display. I'll let you know what happens.