Show value from conf file

Forums Desktop Info Show value from conf file

This topic contains 10 replies, has 2 voices, and was last updated by Avatar TheGhost 1 month, 2 weeks ago.

  • Author
    Posts
  • #1511 Reply
    Avatar
    TheGhost
    Participant

    Good morning Glenn,

    thank you for adding the FILE2TEXT ‘key’ options.
    I can’t show a single value from a conf file.
    I have tested it with a text file. It works without problems.
    When I keep off the ‘key’ option by the conf file then it displayed only the first line from the conf file.
    Is only a txt file supported or which data types are supported?

    Can you help me please?

    0
  • #1512 Reply
    Glenn
    Glenn
    Keymaster

    I suspect your conf file is not a text file. The FILE2TEXT item can only read text files. What application is the conf file from? Maybe attach it here and I can have a look.

    0
  • #1513 Reply
    Avatar
    TheGhost
    Participant

    Good morning Glenn,

    yes, you’re suspect right. The conf file is from AnyDesk. I attached the conf file, but I replace important information with placeholder. I need line 5.
    Thank you, that you want to help me.

    0
  • #1514 Reply
    Glenn
    Glenn
    Keymaster

    you’ll need to zip the file.

    0
  • #1515 Reply
    Avatar
    TheGhost
    Participant

    I had zip the file

    Attachments:
    1. system.zip
    0
  • #1517 Reply
    Glenn
    Glenn
    Keymaster

    The system.conf is a text file. I was able to show the whole file and also a single entry using the following item:

    FILE2TEXT=active:1,interval:0,file:system.conf,key:ad.anynet.id

    0
  • #1519 Reply
    Avatar
    TheGhost
    Participant

    I attached a another conf file. I tested it, but it not works with the attached file It works for me with the file I gave you, but it does not work with the file I’ve attached.
    It shows me <n/a> by the attached file.

    Attachments:
    1. system-Kopie.zip
    0
  • #1521 Reply
    Glenn
    Glenn
    Keymaster

    That file is a Unix text file (LF). You need to save it as a Windows text file (CR/LF).

    0
  • #1522 Reply
    Avatar
    TheGhost
    Participant

    Thank you so much for your help. The file is created from the program. I hope the developer change the type of the file.
    I’m sorry you spent so much time.

    0
  • #1524 Reply
    Glenn
    Glenn
    Keymaster

    No worries. I’ll raise an issue and see if it’s feasible to support LF text files.

    0
  • #1600 Reply
    Avatar
    TheGhost
    Participant

    Hey Glenn,

    thank you very very much for the support from unix text files in FILE2TEXT.
    It works.

    Kind regards

    TheGhost

    2+
Reply To: Show value from conf file
Your information:




Cancel
Do NOT follow this link or you will be banned from the site!