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:


See private message.

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

5 freelancers are bidding on average $63 for this job


See private message.

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

See private message.

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

See private message.

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

See private message.

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