Hello All,

i was trying to dial a number from adb shell using system command in Perl
script,
but this command did not go through at all.

after i typed the below code,


$NUMBER = <STDIN>;
$COM_PORT = <STDIN>;

system("ECHO ATZ0 > $COM_PORT;");
system("ECHO ATDT $NUMBER > $COM_PORT;");
sleep 10;
system("ECHO ATH >$COM_PORT;");

i got in the o/p: ATDT1110001110 and there was no dial tone.
however when i don't take any user input and give the value of NUMBER and
COM_PORT directly in the code , it works fine.


could anybody please let me know where i am going wrong in system command in
adb shell?


regds
rocky

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to 
android-beginners+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to