Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Creating *.bat files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Anon5710
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 232
Location: Belgium

PostPosted: Thu Nov 02, 2006 3:19 pm    Post subject: Creating *.bat files Reply with quote

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
View user's profile Send private message
jcornez
Apprentice
Apprentice


Joined: 12 Jan 2006
Posts: 201
Location: Spain

PostPosted: Thu Nov 02, 2006 3:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Anon5710
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 232
Location: Belgium

PostPosted: Thu Nov 02, 2006 3:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
jcornez
Apprentice
Apprentice


Joined: 12 Jan 2006
Posts: 201
Location: Spain

PostPosted: Thu Nov 02, 2006 3:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum