Em Andamento

Send Commands Perl Script

**Platform:** Redhat Linux 9 **

Language:** Perl **

Other:** Use DBD DBI to connect to DB

Daemon waits for a connection on a port defined in a variable at the top of the script. It will spawn another process to handle the incoming connection and continue to listen. The child process will take first line as *cluster-agent* from the client. It will then wait for string "READY" from the client.

Then it will insert new record in script table in a database defined in a variable at the top of the script.

Field "sent" will contain the current datetime.

Field "cluster" will contain the cluster sent from the client.

Field "agent" will contain the agent sent from the client.

See attached zip file for database structure.

It will then get the id of the record just inserted in table script placing it in a var $scriptid. Then it does an update sql statement on all records in the cmds table with null scriptid field, type field equaling "OUTPUT", matching agent field to agent sent from client and matching cluster field to cluster sent from client. Updateing the scriptid field to $scriptid. Then select all records that have that $scriptid. It then sends the string "OUTPUT" to the client. Next it sends a variable $prepend which will equal "prependtxt". Then sending all of the records selected. Lastly sending a variable called $suffix which equals "suffixtxt".

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Complete ownership and distribution copyrights to all work purchased.

## Platform

**Platform:** Redhat Linux 9

**Language:** Perl

Habilidades: Administração de Bancos de Dados, Engenharia, Linux, MySQL, Perl, PHP, Arquitetura de software, Teste de Software, SQL

Ver mais: string matching in c, php script null, perl get, matching string, cmds, string matching, sql commands, redhat s, perl linux, statement structure sql, update sql file, php connection select, insert variable, php select insert sql, php string contain, perl script file, perl linux daemon, update insert sql, datetime, table perl, perl table, update field sql field field, linux daemon process, perl listen, spawn

Acerca do Empregador:
( 13 comentários ) United States

ID do Projeto: #2975042

Premiar a:

gchelidze

See private message.

$68 USD em 3 dias
(14 Avaliações)
4.4

5 freelancers estão ofertando em média $63 para este trabalho

atislab

See private message.

$68 USD in 3 dias
(0 Comentários)
0.0
aladin888vw

See private message.

$85 USD in 3 dias
(0 Comentários)
0.0
ada5002

See private message.

$8.5 USD in 3 dias
(1 Comentário)
0.0
kiwlmvw

See private message.

$85 USD in 3 dias
(0 Comentários)
0.0