LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-10-2010, 07:20 PM   #1
neehosoft
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
Question A few questions [Slax Linux]


Hi
Im new to SLAX, and i have a couple questions:

1. In windows, you can create batch files. I know Shell files are the equivalent of that in linux, but how do i create one?
I tried creating a text document, typing echo Test, and saving it as .shell but it came up with a empty terminal.

2. How do i add the Right Click> Open With WINE, like there was in Ubuntu. I currently have to go through terminal and type Wine ProgramName, which i am fine with, but I want shortcuts (reason for asking about batches)

3. Finally, how do i add programs to the KDE Menu? I made a custom menu, but when i try and send a program to it, it works unless its a windows executable, which what i'm using is, how can i still add it?
The Program is Brutus AE2, and i want to add it the KDE with the command "Wine" so when you click it it launches a terminal, enters Wine BrutusA2.exe and runs?

4. Also, my search wont work. dunno

Please help and sorry for the stupid questions.

Last edited by neehosoft; 01-10-2010 at 07:21 PM.
 
Old 01-10-2010, 07:27 PM   #2
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 548

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by neehosoft View Post
Hi
Im new to SLAX, and i have a couple questions:

1. In windows, you can create batch files. I know Shell files are the equivalent of that in linux, but how do i create one?
I tried creating a text document, typing echo Test, and saving it as .shell but it came up with a empty terminal.
1) You have to first create the script then make it executable.

Code:
$ cat tst.sh 
#!/bin/bash

echo "Hello World!"
$ chmod u+x tst.sh 
$ ./tst.sh 
Hello World!
$
I can't answer the others as I don't use that setup!
 
Old 01-12-2010, 06:56 PM   #3
neehosoft
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by devnull10 View Post
1) You have to first create the script then make it executable.

Code:
$ cat tst.sh 
#!/bin/bash

echo "Hello World!"
$ chmod u+x tst.sh 
$ ./tst.sh 
Hello World!
$
I can't answer the others as I don't use that setup!
Thank you very much. That helped me a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slax Linux and Others metallica1973 Linux - General 6 04-28-2008 06:35 PM
Three Fairly Easy Slax Questions RAdams Slackware 8 09-28-2006 10:19 AM
grub commands for slax /slax frodo Paridoth Linux - General 2 07-15-2006 11:05 PM


All times are GMT -5. The time now is 08:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration