Linux^2

Linux^2

What you may find here

In this blog you'll mainly find all things Linux - problems, solutions, reports, rants, tips & tricks etc. with the occasional off-topic entry thrown in. You never would have guessed looking at the URL, huh?
In diesem Blog findet ihr hauptsächlich Themen rund um Linux - Probleme, Lösungen, Berichte, Meinungen, Tips & Tricks und dazwischen ein paar überhaupt nicht dazu passende Einträge. Wärt ihr bei der URL nie drauf gekommen, ne?

Mailt mal! Email me!

How to debug gsm-ussd

gsm-ussdPosted by Jochen Sat, May 08, 2010 23:24:05
Hi everyone,

suppose someone told you about gsm-ussd, you tried it - and it doesn't work as expected. Now what to do?

There are some option you can supply to get debugging output. Don't worry, it sounds scarier than it is! Option "-d" or "--debug" will make gsm-ussd quite verbose; every step in communicating with the modem is reported. Option "-l" or "--logfile" with a filename as argument will write the chat between gsm-ussd and the modem into the named log file.

So, if you have a problem, try the following command:

gsm-ussd -d -l chat.out <...further options as needed> 2>&1 | tee gsm-ussd.out

This will show you the debug output and create two files: chat.out containing the chat log and gsm-ussd.out containing the debugging output. Mail these files to me; I promise to take a look.

Cheers,
Jochen