Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Sms

  • 04-05-2004 7:08pm
    #1
    Closed Accounts Posts: 32


    Got an sms login thing working off my linux!

    Wondering how I would go about looking for a program that would say send an sms every hour to a person!

    You can set it up to an extent on the vodafone site but its not exactly what i'm looking for so i want to use my own code to use it

    Any ideas where to look for a script?


Comments

  • Hosted Moderators Posts: 7,486 ✭✭✭Red Alert


    netsoc in UCD seem to have such a system, although i'm not quite sure whether it still works. The sender ID appears to come from Uzbeckistan if you look the number up in the phone book, and to be honest they seem to keep a tight lid on exactly how it works, dunno if it's illegal or what.


  • Closed Accounts Posts: 53 ✭✭dmd


    If it's a command line program, why not just have crontab run it once per hour.

    Look for a tutorial on crontab, it's pretty useful.


  • Hosted Moderators Posts: 7,486 ✭✭✭Red Alert


    you could crontab a program that'll send a http request to the vodafone site:

    (1) Login
    (2) Send the message
    (3) Log out

    I don't know how you'd handle the cookies, is there some way of maybe driving lynx from the command line?


  • Closed Accounts Posts: 7,563 ✭✭✭leeroybrown


    No doubt o2sms is what he's using to send the sms so that's all already handled.

    Just create a simple script (shell, perl, ...) to invoke o2sms witht he necessary options to send the message. Then create a cronjob to execute this script periodically.


    Edit your crontab:
    crontab -e
    

    An entry like:
    5 * * * * /path/to/script.sh
    
    will cause it to run at 5 past the hour every hour.

    You can list your crontab contents with:
    crontab -l
    

    Alternatively you could just run a script as a daemon that calls a 'sleep(x)' function where 'x' represents an hour. The crontab method is far more reliable.


  • Registered Users, Registered Users 2 Posts: 1,865 ✭✭✭Syth


    netsoc in UCD seem to have such a system, although i'm not quite sure whether it still works. The sender ID appears to come from Uzbeckistan if you look the number up in the phone book, and to be honest they seem to keep a tight lid on exactly how it works, dunno if it's illegal or what.
    That doesn't work anymore, alas...:(


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 3,305 ✭✭✭irishguy


    its working fine now again for all networks, some times it goes down when they change the site, very handy tool


  • Closed Accounts Posts: 7,563 ✭✭✭leeroybrown


    its working fine now again for all networks

    I think Syth was referring to some slightly dodgy sustem using a SMS gateway sitting in Uzbeckistan, not ot o2sms.


  • Registered Users, Registered Users 2 Posts: 3,305 ✭✭✭irishguy


    i should really read the full post before replying shouldnt i :)


  • Closed Accounts Posts: 1,376 ✭✭✭joc_06


    use a gsm modem or mobile phone, connect it to a com port and use whatever code you like - its handy out.


  • Registered Users, Registered Users 2 Posts: 1,268 ✭✭✭hostyle


    You're not setting up a Dead Mans Trigger by any chance? :)


  • Advertisement
Advertisement