LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-20-2004, 11:53 AM   #1
njbrain
Member
 
Registered: Jan 2004
Location: Rhinelander, WI, U.S.
Distribution: Slackware
Posts: 416

Rep: Reputation: 30
Are there batch files in linux?


I want to set my computer to run "wineboot" when I open up KDE. How do I do this?
Noah
 
Old 03-20-2004, 12:53 PM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
if you're talking about a per user basis, you can stick a link to wineboot in ~/.kde/Autostart or a shellscript in there with the wineboot command with options you want to use with wineboot.
 
Old 03-20-2004, 05:32 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Alternatively you can set up a shell script (like a batch file in windows) to do the job. Not only does linux have shell scripts but there are a variety of shells to choose from! Here's a simple example:
Code:
#!/bin/bash
xterm -e links &
amsn &
This simple script (when run from x) will start an x-term with the links web browser running on it and also load amsn (the MSN client). Both apps are started in the background (hence the &'s).
Once the file is created (we'll call it 'myscript') it needs to be made executable. This is done with the chmod command:
Code:
chmod +x myscript
+x means add execute permission.

However what you want to do can be done better either using the method Megaspaz has outlined, or if you start at the console by default (i.e. not at the graphical login prompt) by adding the lines:
Code:
wineboot &
exec startkde
to your ~/.xinitrc file. This will only work if you don't login using gdm/xdm/kdm.
 
Old 03-24-2004, 04:58 AM   #4
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Hey

I'm trying to install IE so I can play CS. I have Mikes Wine IE install file but when I run that script I get the following error:

"Internet Explorer 6 install script, (C) 2003 Mike Hearn <mike@theoretic.com>
Released under the GNU Public License

Version 1.5

Could not find wineboot. If you're on Debian try apt-get install wine-utils"

I run Gentoo and I tried "emerge wine-utils" but there isn't a file called that. What can I do to make it work? Any ideas?

Thanks
hamish
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch files in linux? fuelinjection Linux - General 10 05-19-2005 07:49 AM
Linux batch files denizen Linux - Newbie 3 07-28-2004 03:56 AM
Batch files spotslayer Linux - Software 3 06-18-2004 07:31 PM
Linux Batch Files sfnitro230 Slackware 13 03-09-2004 02:51 PM
Are linux scripts just as simple as dos batch files? neeyo Linux - General 4 07-21-2002 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration