Shell Script | check mountpoint and do commands

Closed

Description

hi,

we need a small shell script (for backup) which can do this things:

i need 4 variables to edit on the top of the script:

$email_address =

$mount_point = /mnt/somthing

$max_duration = 480 (minutes)

$my_command = rsync with a few options

i will start the script with a cron job every night.

1. the script should first check the mount. if nothing is mounted as declared i will get a error message per email.

2. if mount is ok, the script should start my command ($my_command).

4. if the script runs longer then $max_duration it should stop $my_command or kill? with email to $email_address

5. if the script is finished before $max_duration it should make a email with a success message with the time which has it taked to to his job.

thanks

kevin

Skills: Linux, Shell Script, UNIX

See more: script check mountpoint, mountpoint shell script, shell script check mount, shell check mount, mountpoint command script, shell script or, shell script, mount, kevin, email check, cron script, cron command, check, kill linux, mounted, check edit, script backup, script finished, cron backup, shell command, shell linux, shell script linux, linux shell, linux shell script, script top

Project ID: #1229250

Awarded to:

linuxfreak1985

Hi, i am expert in bash scripting and i am very interested to complete this project. Please check your PM Box

$50 USD in 0 days
(123 Reviews)
6.4

16 freelancers are bidding on average $48 for this job

CoVaLiDiTy

can help you. tnx.

$50 USD in 1 day
(76 Reviews)
5.6
gangabass

I can do this for you. See PM for details.

$40 USD in 1 day
(32 Reviews)
4.2
srinichal

I can deliver the project asap

$80 USD in 3 days
(12 Reviews)
4.2
zeke

Ready to start and finish within less than a hour.

$50 USD in 0 days
(9 Reviews)
3.9
iizke

Just relax and wait for my result, as soon as possible.

$30 USD in 2 days
(2 Reviews)
3.8
belint

We are professionally established venture, having a team of research professionals in C, LINUX, PHP, SHELL, KERNEL, Networking, SQL, PERL, PYTHON and Full VOIP. Best Regards J Vashi Manager, Sales & Review BELint More

$50 USD in 0 days
(4 Reviews)
3.5
smehta26

Hi, I can do this job with 100% satisfaction for you. Let me know details. Thanks & Regards, Sagar

$40 USD in 2 days
(1 Review)
1.2
dhsharish008

I am professional Linux Engineer and has work exp of over 4 years. I have written a number of shell scripts. And can complete your task in 1 day

$45 USD in 1 day
(0 Reviews)
0.0
Herkk

I am the right person for this, please see PMB.

$125 USD in 1 day
(0 Reviews)
0.0
bukowski12

hello i am 10 years linux administator experince.

$30 USD in 2 days
(0 Reviews)
0.0
nojnish

please refer PMB for details. regards Babu

$50 USD in 1 day
(0 Reviews)
0.0
csssgroup

Shell script expert at your disposal.

$40 USD in 0 days
(0 Reviews)
0.0
Tanujschauhan

Hi I am perl expert for more that 1 year of experience. I can do this job for you.Please let me know your exact requirement of script. Thanks Tanuj

$30 USD in 1 day
(0 Reviews)
0.0
bojanseirovski

Sounds like fun :).

$30 USD in 0 days
(0 Reviews)
0.0
foxb

I can create your backup script in Bash.

$30 USD in 2 days
(0 Reviews)
0.0