LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 10-07-2003, 05:14 PM   #1
identikal
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
Question (donno wot to head it as)


I have root on a debian server..
i want to add a command that my users can type..
i.e they type "get-muh" and it performs a wget <url> command.... is this possible, if so please inform me as to what command(s) i would have to do or whatnot...
 
Old 10-07-2003, 05:38 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
make a script call "get-muh" that has this in it:


#!/bin/sh
wget my.url.com

then give it executable permissions...

chmod 755 get-muh

then put it in /usr/bin or some other common place

-K
 
Old 10-08-2003, 11:37 AM   #3
identikal
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks very much
i take it i do like...
wget url....
tar zxvf muh....
rm muh...tar.gz

it will perform each command after each are fully completed... just incase the last command deletes the tar.gz before its untar'd...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wot no Umlauts kaine Linux - Newbie 13 01-06-2006 05:05 PM
Multi-monitor Issues on RH9, Geforce 4 Ti Dual Head + TNT2 Single Head the letter b Linux - Newbie 3 12-04-2004 11:23 PM
SuSE 9.0, Wot no rc.config? tethysgods Linux - Networking 1 07-24-2004 07:12 PM
apache or httpd I donno nomore Kopper Red Hat 2 09-16-2003 04:11 PM
x86 Solaris 9 XSun and Matrox G550 dual-head... one head down, one to go. finegan Solaris / OpenSolaris 4 03-11-2003 12:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 01:32 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
Open Source Consulting | Domain Registration