0

I'm trying to connect to GPRS network through a serial port connected GSM modem.

When I call /usr/sbin/pppd call <peer_name> from the command line, It correctly receives and handles Ctrl+C from keyboard. But when I put the exact same command in an empty shell script (with or without the shebang at the top), chmod +x it and run it from the shell prompt, pppd starts to run but it totally ignores Ctrl+C key combination. Ctrl+Z works normally though.

This is the contents of the pppd peer file

nodetach
dump
connect "connect_script"
disconnect "disconnect_script"
/dev/ttyS0
noauth

I tested another peer file which I had created to connect to a PPTP VPN server, with the same result. PPTP does not need a chat script, so I'm ruling out problems with chat command or serial port link properties.

OS is debian 7.

Any ideas what is happening here?

zaadeh
  • 161
  • 2
  • 6
  • Try having the shell for the script run as interactive `#!/bin/bash -i`. – Brian Jul 01 '14 at 11:46
  • `bash -i` didn't help. Can someone reproduce and confirm this problem on their machine? On my machine this problem only applies to `pppd`. As far as I checked, no other program has this issue. – zaadeh Jul 01 '14 at 11:55

0 Answers0