Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple commands following each other

Status
Not open for further replies.

Matbe81

IS-IT--Management
Oct 29, 2019
4
BE
Hi,

I’m currently working on a transformation project and wondering how I can run multiples commands on after each other.
Look stupid question but I’m really stuck..

Thank you in advance for your expertise.
 
Can you give any example ?
What system etc.
 
Of course. Sorry for my lack of precision.

It's a Siemens HiPath 4000 and I need to re-reroute specific numbers.

Commande like this for but a serie of non-successing numbers:

cha-wabe:3432,37;
cha-wabe:3476,37;
cha-wabe:3433,37;
cha-wabe:3472,37;
cha-wabe:3424,37;
cha-wabe:3431,37;
cha-wabe:3436,37;
cha-wabe:3428,37;
cha-wabe:3474,37;
cha-wabe:3479,37;
cha-wabe:3504,37;
cha-wabe:3437,37;
cha-wabe:3438,37;
cha-wabe:3473,37;
cha-wabe:3423,37;


Is is more clear?
 
Yes! You can do that quite easily by saving that exact info into a text file (I make them .cmd or .mac so I know what they are later) and then loading it into Comwin as a "Macro" and executing the macro. It will traverse the file one line at a time and do each command. I use them quite often when I'm bulk adding forwarding or button programming for stations. All I have to do is edit the files, load them and away they go. It's a really cool and useful feature!!

Don Bruechert, Voice Comm Analyst II
CareTech Solutions @ Holy Family Memorial
Manitowoc, WI, USA
 
Nice !! Thanks a lot!

2 additionnal questions:
- What append if an error occurs during the script for example 1 number i'm trying to route is already assigned to a station. Does the script continue or stop?
- Is there a way to catch the eventual errors in a proper way?

Thank you !!
 
I haven't worked much with error trapping if it's even possible, but in my experience once you get an error it keeps going and you keep getting errors because it's not answering whatever question the error prompted. In that case I usually abort it and fix whatever caused the errors. Once you get some basic macros that work and all you have to do is edit them it is pretty slick. I have several to put on forwarding to voicemail for X number of phones, and all you have to do is go in and edit the extension numbers and the rest is already done.


Don Bruechert, Voice Comm Analyst II
CareTech Solutions @ Holy Family Memorial
Manitowoc, WI, USA
 
One thing I've found that was helpful for larger projects with a lot of repetition... I built my command strings in Excel and used the concatenate formula to piece together several cells into one. Then copy & paste into a text file when you're done.

LoPath
Maintain HiPath 4000 V5 & V6, OpenScape Xpert V4 & V6, OpenScape Xpressions V7, OpenScape Contact Center V8, OpenScape Voice V9
 
In the Comwin interface you can specify what is to happen when errors occur

Main Comwin 'bar'
Options/Configuration/Dialog
There are three 'halt on' errors and you can try them out.

If you need to re-route specific numbers daily you can add them in as a CRON command that completes on a regular basis

 
Using commands based on excel-generated formula is exactly what I want to do.

Can you share screenshot where to define such options?

I’m stuck when copy-pasting multiple command formula as the interpreter doesn’t understand that semicolon (;) is a separator between commands.
 
Code:
Cell contents:
A101
CHA-DNIT:DNI	
B101
18030	
C101
DRTD	
D101
0	
E101
ESCALATION CORDLESS	
F101
NO	
G101
94029994401
S101
"

Formula:
=CONCATENATE(A101,",",B101,",",C101,",",D101,",",S101,E101,S101,",",F101,",",G101,";")

Result:
CHA-DNIT:DNI,18030,DRTD,0,"ESCALATION CORDLESS",NO,94029994401;

Each command has to be on it's own line. See attached file for example.


LoPath
Maintain HiPath 4000 V5 & V6, OpenScape Xpert V4 & V6, OpenScape Xpressions V7, OpenScape Contact Center V8, OpenScape Voice V9
 
 https://files.engineering.com/getfile.aspx?folder=e98f3834-dc38-45a8-81e6-e295859dfeef&file=Deactivate_Phones.txt
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top