Skip to main content
Tweeted twitter.com/#!/StackUnix/status/484109367407837185
Added some paragraphing and highlighting.
Source Link

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, Itit 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, then pppd starts to run but- But it totally ignores Ctrl+C key combination. Ctrl+Z works normally though.

This is the contents of the pppdpppd 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?

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?

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, then 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?

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-CCtrl+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-CCtrl+C key combination. Ctrl-ZCtrl+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?

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?

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?

Source Link
zaadeh
  • 1.2k
  • 1
  • 13
  • 18

Ctrl-C is ignored by pppd when put in a shell script

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?