How to get the command line options from a file?

*nix specific usage questions
asemen

How to get the command line options from a file?

Postby asemen » 12 Aug 2005 11:01

I would like to open vlc with parameters, which are listed in a file.

How can I do it? I tried vlc --config file_name but nothing happend...

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 12 Aug 2005 11:20

how are they listed ? (basically ... could we have an example file)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Guest

Postby Guest » 12 Aug 2005 11:29

i.e. the whole command line:

/home/video/greenday.mpeg --sout #transcode{vcodec=mp1v,acodec=mpga,ab=128,vb=1024,scale=1}
:std{access=http,mux=asf,url=:8889}}'

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 12 Aug 2005 13:01

something like :

Code: Select all

vlc `cat configfile`
should do the trick.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Guest

Postby Guest » 12 Aug 2005 17:47

Sorry I wasn't too detailed with my question.

So. I would like to broadcast on the web, with basic http auth. In that way i can set a user and pwd. But if i start vlc with this params, anybody who has an account to my computer can see that user-name and pwd.

With: ps aux | grep vlc

I tried to put the code into shell script, or use the $(cat pwd_file) trick, but neigther of them can help.

If there were a possibility to run vlc with a config file, I can hide the passwd in a well protected file.

Any suggestions?



(sorry for my english)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 14 Aug 2005 00:26

you can put the password in the ~/.vlc/vlcrc config file (you can also use the command line to change the config file used)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Guest

Postby Guest » 14 Aug 2005 23:42

:D

Thank YOU!


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests