Article View: alt.privacy.anon-server
Article #197980Shell Script Question
From: retired hobbyist
Date: Sun, 04 Dec 2005 17:47
Date: Sun, 04 Dec 2005 17:47
47 lines
3737 bytes
3737 bytes
--0-496588585-1133718446=:71676 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I am trying to run mixmaster via a little shell script, which asks me for the file name of the file that I want mixmaster to mail. If I run the command in the konsole, it works, but if I run it with the shell, the shell doesn't seem to be interpreting the asterisk wildcard. Here's the script: #!/bin/sh echo "Enter file name or part of it" read FNAME echo "Hello $FNAME" mixmaster -p -c 4 </home/user/.pan/messages/folders/pan.sendlater/$FNAME Suppose the file name is pan.2005.12.05.cnm. If I enter pan*cnm, the shell script comes back with /home/user/.pan/messages/folders/pan.sendlater/pan*cnm: No such file or directory. But if I type, on a command line, mixmaster -p -c 4 </home/user/.pan/messages/folders/pan.sendlater/pan*cnm the file is found and mixmaster runs. Any suggestions? Thanks. --------------------------------- Yahoo! Personals Skip the bars and set-ups and start using Yahoo! Personals for free --0-496588585-1133718446=:71676 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit <div id="RTEContent"> I am trying to run mixmaster via a little shell script, which asks me for the file name of the file that I want mixmaster to mail.<br> <br> If I run the command in the konsole, it works, but if I run it with the shell, the shell doesn't seem to be interpreting the asterisk wildcard.<br> <br> Here's the script:<br> #!/bin/sh<br> <br> echo "Enter file name or part of it"<br> read FNAME<br> echo "Hello $FNAME"<br> <br> mixmaster -p -c 4 </home/user/.pan/messages/folders/pan.sendlater/$FNAME<br> <br> <br> Suppose the file name is pan.2005.12.05.cnm.<br> <br> If I enter pan*cnm, the shell script comes back with<br> <br> /home/user/.pan/messages/folders/pan.sendlater/pan*cnm: No such file or directory.<br> <br> But if I type, on a command line, <br> mixmaster -p -c 4 </home/user/.pan/messages/folders/pan.sendlater/pan*cnm<br> <br> the file is found and mixmaster runs.<br> <br> Any suggestions?<br> <br> Thanks.<br> </div><p> <hr size=1> <B>Yahoo! Personals</B><BR> Skip the bars and set-ups and <a href="http://us.rd.yahoo.com/evt=36107/*http://personals.yahoo.com/us/reg/free7days ">start using Yahoo! Personals for free</a> --0-496588585-1133718446=:71676--
Technical Details
Message-ID:
<20051204174726.71683.qmail@web36405.mail.mud.yahoo.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!newsh.newsreader.com!image.newsreader.com!anonymous!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <20051204174726.71683.qmail@web36405.mail.mud.yahoo.com> Subject: Shell Script Question Date: Sun, 04 Dec 2005 17:47:26 +0000 From: retired hobbyist <retiredhobbyist@yahoo.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed4.newsreader.com!newsreader.com!newsh.newsreader.com!image.newsreader.com!anonymous!not-for-mail Return-Path: <retiredhobbyist@yahoo.com> DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=cy7WtRrPVtnpql1jh8Mgcq3lLt/hN5TaovKleHlMneq3g4zXTKo7SzCz3S1OeAPOzgUIRwcQWFYAkh9O90zTFMjaQTnJxj3BQegFOV65xZZIanhyd2v69QHbPCljnWm9jOV0r5C9yHM5ZqC6OMPqf8Vk4YgyEy8lBDnLdyC/dMc= ; Content-Type: multipart/alternative; boundary="0-496588585-1133718446=:71676" Content-Transfer-Encoding: 8bit Newsgroups: alt.privacy.anon-server X-Complaints-To: remaileradmin at optonline dot net X-Trace: image.newsreader.com 2.QqvSf, yjdd.CHBhJdkLiB3UZU+jGVfk, M65Eb2FE6H, 5rSXs Lines: 47