SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

Smash - An application for delivering short messages to cellular phones

Copyright (C) 2000 Björn Stenberg and Daniel Stenberg

To build:

  1. Run: ./configure
  2. Run: make

Note: For Solaris, and possibly others, you need to modify plugins/Makefile and replace '-shared' with '-G' on the LD line.

To install: (this will later be made automatic with a fancy 'make install')

  1. Create a new directory for Smash to reside in. Don't install Smash in /usr/local/bin, since it wants a number of files close at hand and we don't want to clutter /usr/local/bin, do we? :-) Suggestion: /usr/local/smash
  2. In the Smash install directory, create the catalogs 'store' and 'plugins'.
  3. Copy 'smashd' and 'smash.cfg' to the install directory
  4. Copy 'client/smash' to /usr/local/bin. This is the sender program/client that other people/programs will use, so it's good to have in a common place.
  5. Copy the *.so files from the 'plugins' directory to the 'plugins' directory in the installation dir.
  6. Edit the smash.cfg file to define your operator and other parameters.
  7. Decide if you need to run Smash as root or not. Smash doesn't in itself have to run as root. However, you may want to run it as root or make system permission modifications due to:
    1. The tty device. Smash needs to have read and write access to the tty your modem is connected to. Solution: Either run Smash as root, or modify the permissions for the device
    2. Device locking. If Smash will be sharing the tty device with another program, you need to enable device locking. Solution: Set the Smash config variable 'locking' to 1 and make sure 'lockdir' defines to your system's lockfile directory. Make sure Smash can read and write (and create files) in that directory, either by running Smash as root, or by modifying permissions accordingly.

To start server

  1. cd to the installation directory
  2. Run: smashd &

To start client

  1. Run: smash (run 'smash -h' for help)

Note: When you have everything up and running, you may want to lower the log levels in the config file, to prevent Smash from filling up your harddisk with useless log data. :-)


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.