Find Jobs
Hire Freelancers

script notification using inotifywait

$10-30 USD

Inaendelea
Imechapishwa over 9 years ago

$10-30 USD

Kulipwa wakati wa kufikishwa
here is the context : i am running this on a raspberry pi i am watching a folder for when a new file is create ([login to view URL]). i must then read that file and use it contents for mpg321 parameters.(play sound) then i erase the file created and wait again for a new file .. and so on... the file can be create very fast one after the other so the mpg321 run is background and then kill himself. i have a small script already , but need to be completed if it can help. here is for example the contens of [login to view URL] [login to view URL] [login to view URL] [login to view URL] #! /bin/bash while true; do inotifywait -q -e create /home/watch/ rsult=$(cat /home/watch/[login to view URL]) cd /home/notification/ mpg321 -q $rsult rm /home/watch/[login to view URL] done the goal of this script is to detect when a file is create by another programme read is contents and then use it like parameters to play a notification sound. my script alredy work , but when the file is create too fast i am skipping some play. thanks
Kitambulisho cha mradi: 6692158

Kuhusu mradi

6 mapendekezo
Mradi wa mbali
Inatumika 10 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
6 wafanyakazi huru wana zabuni kwa wastani $30 USD kwa kazi hii
Picha ya Mtumiaji
Hi Naaseb, no problem at all, just award me when see my message. you have my mail too sendme a message when you want.
$30 USD ndani ya siku 0
4.9 (5 hakiki)
7.0
7.0
Picha ya Mtumiaji
Hello, Can you explain the procedure step by step? like: 1) Wait for x file in y folder 2) ... I can make a c# script instead of shell script, the performance will be better.
$35 USD ndani ya siku 1
5.0 (33 hakiki)
5.1
5.1
Picha ya Mtumiaji
Hi, naseeb18. I developed tools and scripts that the Development Team utilize it. I have a strong background in data processing and string manipulation using Perl, python, bash and scripting in General. I can start as early possible depending on your approval and acceptance. In relation to this application, I can rest assured I will impart a high quality and reliable, efficient and accurate with the output. Give me a try and I will try to get the best results and finish the project far before the deadline. Thanks, Cracken
$30 USD ndani ya siku 0
4.8 (21 hakiki)
4.6
4.6
Picha ya Mtumiaji
I need to now "too fast" what does it mean. I can help you with a control of time input. if you have any question please don't hesitate to contact me.
$25 USD ndani ya siku 3
5.0 (6 hakiki)
3.2
3.2
Picha ya Mtumiaji
Hi, I think you can separate the logic for event notification and play music so that the it can process event faster. I would love to help you handle this issue. Phuc
$30 USD ndani ya siku 1
0.0 (0 hakiki)
0.0
0.0

Kuhusu mteja

Bedera ya FRENCH GUIANA
parimaribo, French Guiana
5.0
5
Njia ya malipo imethibitishwa
Mwanachama tangu Jun 22, 2012

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.