Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: how to create .cfg file  (Read 7525 times)

0 Members and 1 Guest are viewing this topic.

mala_un

  • Guest
how to create .cfg file
« on: July 18, 2006, 07:15:29 PM »
i know that if we want to ask for user entry at the start up... we can use the filename.cfg...

but how to create that file?

the language use inside it?

please help me

thanks im advance
« Last Edit: July 18, 2006, 07:16:18 PM by mala_un »

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: how to create .cfg file
« Reply #1 on: July 19, 2006, 02:49:49 AM »
Are you sure this questions relates to Linux?  You've asked it in the Linux forum.

What operatings system/program are you referring to?
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos

mala_un

  • Guest
Re: how to create .cfg file
« Reply #2 on: July 19, 2006, 04:17:01 AM »
yup..
i using Monta Vista linux

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: how to create .cfg file
« Reply #3 on: July 19, 2006, 05:20:16 AM »
Hmm.  That looks like a fairly specialised Linux distribution.  This is not how you would normally set up users.  I think you will need to obtain technical support from the distributor or your supplier.

I don't know if it helps, but you can normally create and edit text files in Linux using one of the text editors.  E.g. vi, emacs or joe at the command line, or something like Kate in KDE.
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos

mala_un

  • Guest
Re: how to create .cfg file
« Reply #4 on: July 19, 2006, 06:50:12 PM »
thanks Pomeroy...

i've did the script using vi...
the .cfg file is like some extras to the script..
instead of having user edit the script to change the variable, i decide to use user prompt..

i have a script that will continues running...
i believed its not ok to enter ctrl+c...
how is it?
do i have to enter some lines at rc6.d...(since rc6.d is responsible for shutting down)

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: how to create .cfg file
« Reply #5 on: July 21, 2006, 04:16:45 AM »
I'm afraid I don't understand your question.  Something is getting lost in translation.  :(

If your script needs to exit when you shut down, it will just be terminated - you don't need to worry about init scripts unless you have a particularly need for them.
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos

mala_un

  • Guest
Re: how to create .cfg file
« Reply #6 on: July 25, 2006, 07:45:52 PM »
thanks Rob Pomeroy..

i did understand now...
i replace the termination of the script by prompting the user with choices...whether they want to continue running the program or execute to OS.
to make it continuously, i did put the timer assuming user enter yes if the times up...

hhehehe... we should try and try and try untill everything run perfectly... :)

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: how to create .cfg file
« Reply #7 on: July 26, 2006, 02:59:14 AM »
Well I'm glad you've ended up with something that's working for you.  :)
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos