View previous topic :: View next topic |
Author |
Message |
Anon5710 Apprentice
Joined: 23 Jul 2004 Posts: 232 Location: Belgium
|
Posted: Thu Nov 02, 2006 3:19 pm Post subject: Creating *.bat files |
|
|
Hello,
a quick question,
I need to know how to create a batch file (or the gentoo equivalent) for the windows *.cmd or *.bat files. |
|
Back to top |
|
|
jcornez Apprentice
Joined: 12 Jan 2006 Posts: 201 Location: Spain
|
Posted: Thu Nov 02, 2006 3:23 pm Post subject: |
|
|
I think you are looking for a shell script. You can create this using an editor like vim/emacs/nano. If you are new to all this, then nano is the easiest for getting started. If you don't know anything about unix shell programming, then you'll want to read the bash man page (or at least refer to it).
What exactly do you want this file to do for you? |
|
Back to top |
|
|
Anon5710 Apprentice
Joined: 23 Jul 2004 Posts: 232 Location: Belgium
|
Posted: Thu Nov 02, 2006 3:37 pm Post subject: |
|
|
not much
When ever i compile kernel i need to "touch" it first so.
I would like to create a command that executes
touch /usr/src/linux/usr/initramfs_data.cpio.gz
make menuconfig
in this order, thats about it |
|
Back to top |
|
|
jcornez Apprentice
Joined: 12 Jan 2006 Posts: 201 Location: Spain
|
Posted: Thu Nov 02, 2006 3:52 pm Post subject: |
|
|
nano my-script.sh
Code: | #!/bin/bash
touch /usr/src/linux/usr/initramfs_data.cpio.gz
make menuconfig |
chmod a+x my-script.sh |
|
Back to top |
|
|
|