Jul-19-2020, 06:35 AM
(Jul-19-2020, 05:51 AM)Gribouillis Wrote: Then you can perhaps try
or
Output:script --return --quiet -c "grgsm_scanner" alpha.txt
to let the program think that is is being called from a terminal instead of a shell script.
Output:script --return --quiet -c "grgsm_scanner | tee alpha.txt" /dev/null
The first method is working for me. Thankyou so much.
Output:Script started on 2020-07-19 11:26:36+0500
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown
ARFCN: 1004, Freq: 931.0M, CID: 36231, LAC: 7713, MCC: 410, MNC: 4, Pwr: -46
ARFCN: 1008, Freq: 931.8M, CID: 47103, LAC: 7713, MCC: 410, MNC: 4, Pwr: -34
ARFCN: 6, Freq: 936.2M, CID: 10096, LAC: 10470, MCC: 410, MNC: 1, Pwr: -27
ARFCN: 10, Freq: 937.0M, CID: 30911, LAC: 10470, MCC: 410, MNC: 1, Pwr: -38
ARFCN: 49, Freq: 944.8M, CID: 15535, LAC: 52207, MCC: 410, MNC: 3, Pwr: -28
ARFCN: 66, Freq: 948.2M, CID: 10001, LAC: 470, MCC: 410, MNC: 6, Pwr: -28
ARFCN: 75, Freq: 950.0M, CID: 6561, LAC: 470, MCC: 410, MNC: 6, Pwr: -47
ARFCN: 79, Freq: 950.8M, CID: 10003, LAC: 470, MCC: 410, MNC: 6, Pwr: -48
ARFCN: 82, Freq: 951.4M, CID: 10002, LAC: 470, MCC: 410, MNC: 6, Pwr: -39
Script done on 2020-07-19 11:29:22+0500
This is the text file. If you can guide me about me second issue, i'll be very grateful. I need to compare this text file to another database text file but this has to be done column wise. Like first all the ARFCNs compared with the ARFCNs in my database and so on. Is there anyway i can do this?
Thanks in advance.