Re: OT: Shell Script
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61658
interpreted = N
texte = Clint Davis wrote:> Can anyone provide an example of a shell script that would insert three> entries into the /etc/hosts file and perform `lookupd -flushcache` ?Don't run random shell scripts that someone posts to a public listserv without understanding what they do (typically by running them one line at a time with an unpriveleged account, i.e. *not* root). This should be a good example:> #!/bin/sh> # call like: > # scriptname entry1 entry2 entry3> echo %1 >> /etc/hosts> echo %2 >> /etc/hosts> echo %3 >> /etc/hosts> lookupd -flushcacheGet out to your favorite independent bookstore and buy a Unix administration book (O'Reilly has a few), since you should be able to do simple things like this before you seriously try and administer a *nix box...HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Clint Davis wrote:> Can anyone provide an example of a shell script that would insert three> entries into the /etc/hosts file and perform `lookupd -flushcache` ?Don't run random shell scripts that someone posts to a public listserv without understanding what they do (typically by running them one line at a time with an unpriveleged account, i.e. *not* root). This should be a good example:> #!/bin/sh> # call like: > # scriptname entry1 entry2 entry3> echo %1 >> /etc/hosts> echo %2 >> /etc/hosts> echo %3 >> /etc/hosts> lookupd -flushcacheGet out to your favorite independent bookstore and buy a Unix administration book (O'Reilly has a few), since you should be able to do simple things like this before you seriously try and administer a *nix box...HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
John Peacock
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebCatalog Use Question (1997)
Page-Execution-Timer...PHP vs WebDNA (2004)
Shop till you drop dead on the avenue ... (1997)
Cart Number sequence (1997)
embedding [showcart] ??? (1998)
WebCatalog Mac and cgi-bin (WebSTAR 2.0) (1997)
Multiple prices (1997)
To Do list (2003)
2.0 Info (1997)
RE: [shownext] support - MacOS (1997)
Multiple Users.db Possible? (1997)
Search logic? (1998)
Re:WebDNA Writer Needed (1997)
From database to email (1999)
ups quickcost [repost] (1999)
webcat- multiple selection in input field (1997)
Help name our technology! (1997)
First postarg not taking in $Commands (1997)
Safari browser and WebDNA set-cookies (2003)
911: testing if the field is empty (2000)