[SOLVED] to find out what a programing riding on another program
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I mean, suit yourself, but I still think the config route is more elegant.
You really have to start reading man pages.
Since you said it twice, i believe there bound to have some useful info in the man.. hence i read...
first thing first:
How do you read such a long page of man ? it is without ending.. i don't know which page and how many more..
Hence i used
Code:
man mpv | less
, but it alters some content of it and format of it.
Look at the weird CODES... eg: \xe2\x80\x90 .. that messed up the format of the man page.
How do you read such a long man page ?
Thx
Code:
CONFIGURATION FILES
Location and Syntax
You can put all of the options in configuration files which will be read every time mpv is
run. The system-wide configuration file 'mpv.conf' is in your configuration directory (e.g.
/etc/mpv or /usr/local/etc/mpv), the user-specific one is ~/.config/mpv/mpv.conf. For details
and platform specifics (in particular Windows paths) see the FILES section.
User-specific options override system-wide options and options given on the command line over\xe2\x80\x90
ride either. The syntax of the configuration files is option=value. Everything after a # is
considered a comment. Options that work without values can be enabled by setting them to yes
and disabled by setting them to no. Even suboptions can be specified in this way.
Example configuration file
# Use GPU-accelerated video output by default.
vo=gpu
# Use quotes for text that can contain spaces:
term-status-msg="Time: ${time-pos}"
Escaping spaces and special characters
This is done like with command line options. The shell is not involved here, but option values
still need to be quoted as a whole if it contains certain characters like spaces. A config en\xe2\x80\x90
try can be quoted with ", as well as with the fixed-length syntax (%n%) mentioned before. This
is like passing the exact contents of the quoted string as command line option. C-style es\xe2\x80\x90
capes are currently _not_ interpreted on this level, although some options do this manually.
(This is a mess and should probably be changed at some point.)
Putting Command Line Options into the Configuration File
Almost all command line options can be put into the configuration file. Here is a small guide:
\xe2\x94\x8c\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\xac\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x90
\xe2\x94\x82Option \xe2\x94\x82 Configuration file entry \xe2\x94\x82
\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\xbc\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\:
you can use an online man page like this: https://manpages.ubuntu.com/manpages...an1/mpv.1.html but man mpv should work without piping it. Man also has a man page (which is available online too) and you can set up a PAGER for it - if you wish.
I mean, suit yourself, but I still think the config route is more elegant.
You really have to start reading man pages.
Hii Ondoho,
I found the treasure cave!! according to your guidance. I know for sure this is the hint that you were hinting me! :=) Bingo right ?
Code:
ytdl_path=youtube-dl
Configure path to youtube-dl executable or a compatible fork's. The default "youtube-dl" looks for the executable in PATH. In a Windows environment the suffix extension ".exe" is always appended.
I should have my "yt-dlp" configured in PATH environment variable. But /usr/bin is already in path, so anything in /usr/bin is fine, i don't have to mess with PATH.
I just need to change from
ytdl_path=youtube-dl
to
ytdl_path=yt-dlp
So far so good ?
There is only 1 problem that i don't understand.
Since i don't have mpv.conf file, should i create myself a mpv.conf in ~/.config/mpv/mpv.conf ?
And since i have got nothing else need to add to mpv config, i need have 1 single line written in mpv.conf:
Since you said it twice, i believe there bound to have some useful info in the man.. hence i read...
first thing first:
How do you read such a long page of man ? it is without ending.. i don't know which page and how many more..
Hence i used
Code:
man mpv | less
, but it alters some content of it and format of it.
Look at the weird CODES... eg: \xe2\x80\x90 .. that messed up the format of the man page.
How do you read such a long man page ?
Thx
Code:
CONFIGURATION FILES
Location and Syntax
You can put all of the options in configuration files which will be read every time mpv is
run. The system-wide configuration file 'mpv.conf' is in your configuration directory (e.g.
/etc/mpv or /usr/local/etc/mpv), the user-specific one is ~/.config/mpv/mpv.conf. For details
and platform specifics (in particular Windows paths) see the FILES section.
User-specific options override system-wide options and options given on the command line over\xe2\x80\x90
ride either. The syntax of the configuration files is option=value. Everything after a # is
considered a comment. Options that work without values can be enabled by setting them to yes
and disabled by setting them to no. Even suboptions can be specified in this way.
Example configuration file
# Use GPU-accelerated video output by default.
vo=gpu
# Use quotes for text that can contain spaces:
term-status-msg="Time: ${time-pos}"
Escaping spaces and special characters
This is done like with command line options. The shell is not involved here, but option values
still need to be quoted as a whole if it contains certain characters like spaces. A config en\xe2\x80\x90
try can be quoted with ", as well as with the fixed-length syntax (%n%) mentioned before. This
is like passing the exact contents of the quoted string as command line option. C-style es\xe2\x80\x90
capes are currently _not_ interpreted on this level, although some options do this manually.
(This is a mess and should probably be changed at some point.)
Putting Command Line Options into the Configuration File
Almost all command line options can be put into the configuration file. Here is a small guide:
\xe2\x94\x8c\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\xac\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x90
\xe2\x94\x82Option \xe2\x94\x82 Configuration file entry \xe2\x94\x82
\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\xbc\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\:
The strange appearance is because 'man' already uses a pager for output and passing it through less just complicates things since less is trying to make sense of the formatting code from the pager man uses and displays the hex codes as text instead.
Have you ever use man and NOT been able to page up and down through the document as you wished?
Man pages are meant to provide the info to understand what the app does and how to use it. Some man pages are long, others are short, and it depends on the complexity of the app and its capabilities. You have to read the details to find what you are interested in, and see what it can do for you.
This is the portion you posted with using 'man mpv' on my system.
Code:
CONFIGURATION FILES
Location and Syntax
You can put all of the options in configuration files which will be read every time mpv is run. The system-wide configu‐
ration file 'mpv.conf' is in your configuration directory (e.g. /etc/mpv or /usr/local/etc/mpv), the user-specific one is
~/.config/mpv/mpv.conf. For details and platform specifics (in particular Windows paths) see the FILES section.
User-specific options override system-wide options and options given on the command line override either. The syntax of
the configuration files is option=value. Everything after a # is considered a comment. Options that work without values
can be enabled by setting them to yes and disabled by setting them to no. Even suboptions can be specified in this way.
Example configuration file
Last edited by computersavvy; 12-18-2021 at 12:19 PM.
Have you ever use man and NOT been able to page up and down through the document as you wished?
Everything was fine with man .. just when the man page is too long, i got uncomfortable with it.
Hence i piped it to "less" thinking i can scroll in page by page manner, which somehow i am more comfortable with.
But since man page is already passed to a pager and i pipe it to another pager (less) is not working.. so be it..
I rather not pursue down the gully..
I understand today that man page has pager built in, hence no need to pipe to less in the future.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.