[SOLVED] Script to write in .conf/text file.
Posted: Fri 12 Oct 2012, 16:49
Hi !
Could someone help me create a script please ?
I would like, to integrate the text in a conf file, from a script with different options.
I know this is not well explained ...
I have a config file in / etc / xdg / lxsession / autostart.conf
Content =
Using a script, is it possible to add characters in the file, in a precise location?
For example, by running the script, once configured, I want the conf targeted file looks like this :
Of course, if you have a base, I could then adapt.
It's because, I do not know programming, but I can understand the script.
Thanks, if you have questions. Since mine is not really precise... I don't know how to explain it.
Cheers !
Could someone help me create a script please ?
I would like, to integrate the text in a conf file, from a script with different options.
I know this is not well explained ...
I have a config file in / etc / xdg / lxsession / autostart.conf
Content =
Code: Select all
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
For example, by running the script, once configured, I want the conf targeted file looks like this :
Code: Select all
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@hello world
It's because, I do not know programming, but I can understand the script.
Thanks, if you have questions. Since mine is not really precise... I don't know how to explain it.
Cheers !