Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have a external board connected to my serial port. I need to execute "shutdown -r now" command when system boot up. When system boots up it requires a ...
  1. #1
    Just Joined! charlie_arya's Avatar
    Join Date
    Sep 2009
    Posts
    39

    need help with serial port

    Hi,

    I have a external board connected to my serial port. I need to execute "shutdown -r now" command when system boot up. When system boots up it requires a username ans password. Then I need to run my command. I can use rc script but that is rebooting system before it asks for username and password. The command should
    1. first give username to the device
    2. secondly, it should give password
    3. finally it should give "shutdown -r now" command to the board.

    This script can run on the host PC and need to log the botting and rebooting messages.

    Is it possible to write script on host PC to do it. I am trying to send command as data over serial but its simply echoes on the board but does execute. Please help.

  2. #2
    Linux Newbie theNbomr's Avatar
    Join Date
    May 2007
    Location
    BC Canada
    Posts
    150
    You haven't said what OS the 'host PC' is running, (although you hinted that the external board is running linux). If you are running Linux, then C-Kermit can be scripted to do all of what you are trying to do. Even if you don't use it for scripting this, it is still the best terminal emulator and serial interface communicator, so you should want to use it anywhere serial ports are involved.
    --- rod.

    --- rod.
    Stuff happens. Then stays happened.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...