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 08-03-2003, 09:48 PM   #1
ACURA TL-S
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
How do I create a script?


This may be a stupid question but, I want to create a script that will allow me to open a new session of mozilla without the profile lock problem. The script I want to create is

#!/bin/bash
mozilla -remote 'xfeDoCommand (openBrowser)' || \
( echo ".... running Mozilla" && mozilla )
 
Old 08-03-2003, 09:58 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Use a text editor, paste that into it, save the file with the name you want to use, make it executable, (chmod 755 <script>) and then execute it.

./<script>
 
  


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
Create a login script? jedimastermopar *BSD 4 08-02-2004 08:07 AM
create users using script polis Linux - General 1 05-18-2004 08:19 AM
how do i create a script unimaginative Linux - General 6 01-01-2004 06:53 PM
How do I create a script in SUSE 8.2? byfaithalone Linux - Newbie 2 10-16-2003 11:32 AM
How to create many by a script kelper Linux - General 11 09-24-2003 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 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