Python Forum
Redirection giving faulty results
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirection giving faulty results
#5
(Jul-19-2020, 05:51 AM)Gribouillis Wrote: Then you can perhaps try
Output:
script --return --quiet -c "grgsm_scanner" alpha.txt
or
Output:
script --return --quiet -c "grgsm_scanner | tee alpha.txt" /dev/null
to let the program think that is is being called from a terminal instead of a shell script.

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.
Reply


Messages In This Thread
Redirection giving faulty results - by monstrup - Jul-18-2020, 09:32 PM
RE: Redirection giving faulty results - by monstrup - Jul-18-2020, 10:22 PM
RE: Redirection giving faulty results - by monstrup - Jul-19-2020, 06:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Search Results Web results Printing the number of days in a given month and year afefDXCTN 1 2,357 Aug-21-2020, 12:20 PM
Last Post: DeaD_EyE
  Two exact "Fors" giving me different results? FilGonca 2 2,162 May-04-2020, 12:36 PM
Last Post: FilGonca
  How to append one function1 results to function2 results SriRajesh 5 3,345 Jan-02-2020, 12:11 PM
Last Post: Killertjuh
  My first program is a bit faulty. Please Help. Manjushri 3 2,306 Dec-06-2019, 01:12 PM
Last Post: snippsat
  Help with faulty code. Wilson1218 1 2,941 Jun-14-2017, 09:15 AM
Last Post: wavic
  Why are two similar bits of code giving different results? godmode 10 10,271 Dec-15-2016, 09:53 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020