Page 3 of 3

Re: mgr -nodico -X <file>

Posted: 04 May 2009 16:10
by krzysioD
well,
i've written some code that creates agents from txt file (dn firstname lastname pin) and it even calculates percent of girls hired today (it knows girls names :D ). Makes keys, attaches to 'temporary' PG etc...
Works like a charm, especially if you need to have correct entity and categories for agents, and you create them on daily basis and your input data came from CRM in plain TXT file.
Nice thing is when everything is OK output from script is green on your term, when it's bad (like agent exists) your term yields this with RED.
Script for deleting 1000 agents not having logged in for 99 days and first detaching from PG is a little tricky, but it takes like 40 minutes on CPU7_2 to run, and believe me it makes your blood pressure go high...

Re: mgr -nodico -X <file>

Posted: 20 Aug 2009 12:44
by soccer_DUP
Is there any way to run edsbr as a cron job?

The idea is to get a list of all users updated daily. My edsbr is already configured as needed and it just needs a go to export the wanted file, but it's still not as automatic as needed....

Thanks in advance.

Re: mgr -nodico -X <file>

Posted: 21 Aug 2009 21:08
by soccer_DUP
The idea is not just how to add the command to cron, but how to run edsbr from the command line without "entering on it", just by issuing the command with some parameters to obtain the updated list of users.

Re: mgr -nodico -X <file>

Posted: 30 Aug 2009 16:03
by Egidio
Hi

I have some cron jobs running with edsbr:

By crontab I run a command file called edsbr.egi (must be executable):

Code: Select all

edmcs sbr -c `uname -n` <ed_in.egi
(here you can do with it what you want:)
mv -f `find /tmpd/ -name mcsed* -ctime 0` /tmpd/edsbr.txt
cat /tmpd/edsbr.txt 
this needs as input a fiel called ed_in.egi:

Code: Select all

go
q

I hope you can experiment enough with that to alter the input to edsbr (= edmcs sbr!)

Br.Egidio

Re: mgr -nodico -X <file>

Posted: 16 Sep 2009 07:17
by soccer_DUP
yeah, it worked great! Thanks for the tip ;)

Re: mgr -nodico -X <file>

Posted: 05 Sep 2011 22:37
by jackey
thanks for guys info, i use it to script PIN code effectively.

Re: mgr -nodico -X <file>

Posted: 14 Nov 2012 06:03
by eduardosaito
Hi,

is it possible to use a single mgr command line to change a operator state?

in my mgr menu the path is mgr->applications->ccd->operators->action then I type the diretory number, press f1, choose the state I need (in my case, is Cancel Withdrawal) and press f1 to confirm.

thanks in advance.