Register
It is currently Fri Oct 31, 2014 5:25 am

Status message to XP


All times are UTC - 6 hours


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 PostPosted: Fri Sep 03, 2010 10:25 am   

Joined: Fri May 16, 2008 4:58 am
Posts: 94
Trying to do little script to send online status of a machine using messaging.

Code:
#!/bin/bash

if curl -s -u user:password 10.0.0.1/status.htm | grep On
then smbclient -M XP <<EOF
Server Online
EOF


however I get

line 8: syntax error: unexpected end of file


Top
 Profile  
 PostPosted: Fri Sep 03, 2010 10:28 am   
User avatar

Joined: Tue Apr 27, 2010 2:28 pm
Posts: 172
Location: Czech Republic
Missing
Code:
fi
:-B


Top
 Profile  
 PostPosted: Fri Sep 03, 2010 12:38 pm   

Joined: Fri May 16, 2008 4:58 am
Posts: 94
oh dear god how could I forget that =)) *runs away and hides*


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP