Need this script written and complete by Saturday.

Shell Programming

Write a Shell script to automatically check that a specified user is logged in to the computer.

The program should allow the person running the script to specify the name of the user to be checked, the frequency in seconds at which the script should check. If a checking frequency is not specified, it should default to 60 seconds

The script should check for the specified user and if found should output a message with a “beep” or “bell” sound to the screen stating that the user is logged in. It should also output a message to a log file stating that the user is logged in and specifying the date and time.

If the user is not logged in the script should output a message without any “beep” sound to the screen stating that the user is not logged in.

The script should allow a person running the script to specify the user name on the command line and optionally, a check frequency in seconds and a third argument “q” “q” . If “q” is present as a third argument, The script should omit any output to the screen or “beep” sound but should log to a log file the message stating that the user is logged in and giving the time.

The command to run the script would be as follows:

checklogin username 30 q where “checklogin” is the script name, “username” is the name of the user, “30” is the optional frequency to check in seconds, and “q” is the optional argument to suppress screen output.

The script should check that the number of arguments supplied is between 1 and 3 and if it is not, should terminate with an error message showing the correct syntax for the command.

Evner: Shell Script

Se mere: easy shell script, syntax programming, syntax in programming, script programming, programming syntax, easy computer programming, c programming syntax, correct username, argument programming, write shell script check person logged, running sound, shell script or, shell script, easy programming, c++ easy programming, output script, write script file, script message, command line written, need seconds, written script, optionally, program automatically check, check output, need written easy

Om arbejdsgiveren:
( 0 bedømmelser ) Boston, United States

Projekt ID: #1005202

3 freelancere byder i gennemsnit $333 på dette job


Will provide a perfect solution. Regards.

$250 USD på 1 dag
(0 bedømmelser)

hi, I am a shell scripting expert. Check your pm.

$500 USD in 0 dage
(0 bedømmelser)

Hey, I am a linux user and have sound understanding of the shell scripting. I would be able to do it for you within three-four hours.. Regards, njain

$250 USD på 1 dag
(0 bedømmelser)