Find Jobs
Hire Freelancers

convert a MS Windows vb script to a Linux –ash shell script

$30-250 USD

Completed
Posted about 9 years ago

$30-250 USD

Paid on delivery
I need to convert a MS Windows getalarms vb script to a Linux –ash shell script. Using the –ash shell, This script will need to open a file named “event-XXXXX” file located in the “/tmp/alarms” folder, parse it and send an email using mutt. The Linux shell scrip will need to reference a “[login to view URL]” file the contains email address to be sent to. I would also like the script file to be modified in the ‘** Get the Zone section to us a “[login to view URL]” file where the zones can be named outside of the script. The email sent can look something like this: Hello, Your Alarm System has Alarms Alarm Time: 17:48:52,08-22-2013 Alarm Message: 1234181100334440 Account Number: 1234 Event Qualifier: New Event or Opening Event Code: 100 Zone: 444 Partition Number: 33 This is an automated E-mail, Do not reply.
Project ID: 7177199

About the project

7 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I did the script. How can i send it to you? The begin of the script is here: #/bin/ash # Petrasl error() { echo $1 echo ' --- [login to view URL] ------------------------------ # Emails separated by space ToEmail="emails goes here" --- [login to view URL] ------------------------------ # Alarm zones file Format: azXXX="Any message", where X is AlphaNumeric value az000="-INFORMATION" az001="-Not Identifyed" az002="-FRONT DOOR" # some commens could be here too ' exit 1 } # Main setup App_Name="[login to view URL]" FromEmail="Email [login to view URL]" EmailSubject="You have a New Event" # Qualifiers and events also could be moved to external file q1="New Opening" q3="New Closing" q6="Previously reported event still present" # Looking for config files [[ ! -f [login to view URL] ]] && error "No [login to view URL] file found" || . [login to view URL] [[ ! -f [login to view URL] ]] && error "No [login to view URL] file found" || . [login to view URL] [[ -z $ToEmail ]] && error "Incorect [login to view URL] file" # Setting up mutt cat>.muttrc<<EOF set from = "$FromEmail" set realname = "$App_Name" EOF alarm() { # explode the string message=${1} account=${1:0:4} Data3=${1:5:2} qualifier=${1:7:1} event=${1:8:3} partition=${1:11:2} zone=${1:13:3} Data8=${1:16:1}
$30 USD in 1 day
5.0 (7 reviews)
3.0
3.0
7 freelancers are bidding on average $72 USD for this job
User Avatar
Hello, I have wronte many script for shell in linux. Most of the time I write for Bash, but I can do it for ASH too. The modification you ask, will be done too. Thanks.
$50 USD in 1 day
4.9 (427 reviews)
7.3
7.3
User Avatar
Hi, im good with linux shell scripts and im confident that i can doo this. i have read your job description and identified that the script would require alot of filtering of text from a file - which im good at along with validation N/B: For me to do this project you must create a milestone for the working request and please also stick to the job description
$50 USD in 0 day
4.9 (31 reviews)
5.1
5.1
User Avatar
Hello. More 20 years programming experience. do you accept another script language except shell? perl, python for example. Regards. ---------------------------------------------------------------------------------------------------------------------------------------------------
$50 USD in 3 days
4.6 (20 reviews)
5.0
5.0
User Avatar
We are a dedicated Team of Linux SME/Senior Linux Admin/Senior Principal Infrastructure Engineer/Network Admin. We can work on this project and deliver to your satisfaction within timeline with data accuracy and quality for lower bid. Resume can be forwarded up on request.
$50 USD in 2 days
5.0 (2 reviews)
1.9
1.9
User Avatar
With the experience I have in resolving cases per console and building automation projects in linux we can solve this case.
$222 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
i have worked on shell scripting for my application for more than 7+ years. i have implemented such kind of scripts in our production environment.
$55 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Alexander, United States
5.0
6
Payment method verified
Member since Feb 24, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.