LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-21-2010, 02:43 PM   #1
alyssasdaddy
LQ Newbie
 
Registered: Jun 2006
Location: Hemet, CA
Posts: 16

Rep: Reputation: 0
Can Any One assist me


In making a shell script to run 3 commands to get my tether up without running a bunch of commands?

Here are the commands i have to run in shell

Code:
root@Laptop:/home/chris# easytether enumerate
###########
root@Laptop:/home/chris# easytether connect
connection established
run 'sudo dhclient easytether0' to configure the network interface
press Ctrl-C to disconnect
The i have to run:

Code:
dhclient easytether0
In a separate window
 
Old 09-21-2010, 03:23 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If you want to put a job into the background and return the command prompt you can put & at the end of the line
Code:
#!/bin/bash
easytether enumerate
easytether connect &
dhclient easytether0
The problem with this is that the "easytether connect" command will exit when you close the terminal window. You could get around that by putting the commands in a bootscript
 
Old 09-21-2010, 03:35 PM   #3
alyssasdaddy
LQ Newbie
 
Registered: Jun 2006
Location: Hemet, CA
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks i will try this.
 
  


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
DOSBOX Problems. Could someone please assist me? TheUbuntuKnight Linux - Games 1 08-03-2009 06:35 AM
sound very choppy please assist if u can nomb Linux - Software 2 08-17-2006 11:30 PM
Please Assist: BashBurn rvijay Linux - Software 10 02-03-2005 01:58 PM
Graphics problem, please assist. v4d3r Linux - Hardware 0 06-08-2004 12:02 PM
Please assist with Mount Error. rvijay Linux - Newbie 35 10-11-2003 10:28 PM


All times are GMT -5. The time now is 02:55 AM.

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