Đã hoàn thành

Shell script to calculate time consumption

We have a log file where we have a number of ID numbers for the shell script to retrieve the time in the log as below

cat /var/log/asterisk/full | grep C-0000335e | grep 'Spawn extension' | grep default

[2019-11-28 21:52:48] VERBOSE[10832][C-0000335e] pbx.c: Spawn extension (default, Queue-206611, 2) exited non-zero on 'SIP/fcplatform-00004e64'

cat /var/log/asterisk/full | grep C-0000335e | grep queue_time=

[2019-11-28 21:52:43] VERBOSE[10832][C-0000335e] res_agi.c: [login to view URL]: Query is UPDATE queue_calls set queue_time='13',agent='l/203@context-out/n',status='0',call_time=Now() where unique_id='1574974337.190819' and queue_name='206611'

The script should then state where each ID number we have in a file, how long each ID number has been used

In the example above, 5 seconds is spent

It must provide it for all the ID numbers in the list - Individual. course

Kĩ năng: Asterisk PBX, Linux, Shell Script

Xem nhiều hơn: linux shell script current date time, asterisk executing shell script call, adding time shell script, bash calculate time difference, linux time milliseconds, bash elapsed time in minutes, bash time command output, shell script execution time, time how long a bash script takes, using time command in shell script, unix time measure, bash shell script current time, perl call shell script mysql query, convert time integer shell script, calculate time script pdf form, shell script current time, call shell script powerbuilder, call sqlldr shell script, unix shell script call sqlldr, call sqlldr shell script filename

Về Bên Thuê:
( 46 nhận xét ) Stenløse, Denmark

ID dự án: #22584578

Được trao cho:

adricabrelles

Hi I am a Senior system admin with more than 15 years experience. I can do now the script. Regards.

$60 USD trong 1 ngày
(1 Nhận xét)
1.7

3 freelancer đang chào giá trung bình $88 cho công việc này

lvana19880908

how are you? I am interested in your project and so bid like this. I am a Linux expert and have experience in system management, config, install, c, c++ programming in Linux such as Ubuntu, CentOS. .... if you hire me, Thêm

$140 USD trong 1 ngày
(1 Nhận xét)
1.4
elhosayny

Hi, Do you have a list of IDs or you want to get the time for all the IDs in the log file? Best regards

$65 USD trong 4 ngày
(1 Nhận xét)
0.9