Re: Alias quoting in the bash shell

3 views
Skip to first unread message

brian pink

unread,
Feb 27, 2005, 10:03:05 PM2/27/05
to 43Fo...@googlegroups.com
when i call this, i'm getting a "No such file or directory" error. i'm not
the bash superhero i might be, any ideas?

- brian

> function stamp()
> {
> cat >"temp-`date +%Y-%m-%e`_`date +%H-%M-%S`.txt"
> }

Robert

unread,
Feb 27, 2005, 10:21:15 PM2/27/05
to 43Fo...@googlegroups.com
Hello,

I would like to collect some labeler recommendations. I am using OS X
and have a nice laserprinter and would prefer not to buy another piece
of hardware unless it is worth it. Does anyone have success using some
method with their printer and if so what?

Thanks for the help.

Best regards,
Robert

Edward Vielmetti

unread,
Feb 27, 2005, 10:25:42 PM2/27/05
to 43Fo...@googlegroups.com
It's worth it to have a little special purpose tool
that prints labels neatly on inexpensive sticky
labelstock - the alternative is to print sheets
from your laserprinter and you're going
to be using scissors a lot to cut pages down to
size.

Ed
--
Edward Vielmetti in Ann Arbor, MI 48104
+1 734 276 5910 / skype: edwardvielmetti

edward.v...@gmail.com
http://vielmetti.typepad.com

jwhit...@gmail.com

unread,
Feb 28, 2005, 11:29:44 AM2/28/05
to 43Fo...@googlegroups.com
Robert,

I have been pleasantly surprised how often I'm using my little labeler.
I do recommend picking one up.

I did break ranks and NOT buy one that plugged in. First, I'm cheap.
:-) Second, I really didn't want anything else on my desk. So I
shopped around and found a Dymo LetraTAG at Target for $16 on sale.
(It's not online, sorry.) It's this one:
http://global.dymo.com/enUS/Products/LetraTAG.html
(The price on the Dymo site is either wrong or obscene, by the way.)
Easy to use, versatile, quick, quiet, only drawback is that it takes
SIX AA batteries.

Hope this helps.
Jaclyn

Marnie Webb

unread,
Feb 28, 2005, 11:41:13 AM2/28/05
to 43Fo...@googlegroups.com
My label maker may actually be the love of life. I'd never guess that
I could so like a $40 device. I bought the one recommended in GTD (a
Brother but I'm afraid I don't remember the model). I use it
constantly. In fact, that (along with stop trying to devise a
meaningful hierachy and just put the files alphabetical order
already!) helped me overcome the mental block to my filing system
which was built, basically, on how messy it was.

The label maker allows me to feel more organized because I'm neater.
And that mental trick -- if I feel more organized I must *be* more
organized -- helps a whole lot.

:mw




--
ext337.blogspot.com

tttopaz

unread,
Feb 28, 2005, 11:47:53 AM2/28/05
to 43Fo...@googlegroups.com
I use a Brother PT-1700. Although you can purchase an adapter, I just
use batteries, so it is easy to move around. The batteries last forever
because the labeler is only on for a few seconds at a time. I picked it
up at K-Mart on sale for around $15. I ditched the clear tape that came
with the labeler and use the laminated white tape. I find that it is
much easier to use the labeler than to print a sheet of labels from the
computer.

jwhit...@gmail.com wrote:

>Robert,
>
>I have been pleasantly surprised how often I'm using my little labeler.
> I do recommend picking one up.
>
>I did break ranks and NOT buy one that plugged in.
>
>


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.2 - Release Date: 2/28/05

Jeffrey C.Long

unread,
Feb 28, 2005, 1:48:45 PM2/28/05
to 43Fo...@googlegroups.com
I put rechargable batteries in mine.

Jeffrey
je...@jeffreyclong.com
http://www.jeffreyclong.com

Some years ago, NASA released the first deep-space photographs of the
beautiful cloud-swirled blue-green agate we call Earth. A reporter
showed one of them to the late Samuel Shenton, then president of
International Flat Earth Research Society. Shenton studied it for a
moment and said, “It's easy to see how such a picture could fool the
untrained eye.”

James Rifkin

unread,
Feb 28, 2005, 7:08:16 PM2/28/05
to 43Fo...@googlegroups.com
On Sun, Feb 27, 2005 at 07:03:05PM -0800, brian pink wrote:
>
> when i call this, i'm getting a "No such file or directory" error. i'm not
> the bash superhero i might be, any ideas?

Double check the function. Especially look for the ">" greater than sign.
That error message sounds like `cat` is running with one argument on a
file that doesn't exist. (i.e. you entered `cat "temp-..."`)

> > function stamp()
> > {
> > cat >"temp-`date +%Y-%m-%e`_`date +%H-%M-%S`.txt"
> > }

--
Cordially,
James Rifkin

DH

unread,
Feb 28, 2005, 10:14:31 PM2/28/05
to 43Fo...@googlegroups.com
I just bought a DYMO ExecuLabel LM150, which I am happy with. I spent
$30. (Because I'm an environmentalist, I wanted one with an a/c
adapter, and it's much, much cheaper to buy one that comes with an
adapter rather than buy an adapter separately. Working out an
environmentally friendly way of doing GTD is a topic for another
discussion!)

You can also get very, very good deals on labelers on eBay.

DH

unread,
Mar 1, 2005, 7:37:01 AM3/1/05
to 43Fo...@googlegroups.com
Rechargeable batteries are also a good solution.

DH wrote:
> (Because I'm an environmentalist, I wanted one with an a/c

> adapter, . . .

Norm

unread,
Mar 1, 2005, 9:07:18 AM3/1/05
to 43Fo...@googlegroups.com
I use a Brother PT 65 - it was pretty cheap, had to be less than 20
usd. I've been happy.

Of course, I have found lots of uses for it beyond file folders. Much
easier than using labels printed from the pc.
--
Norm
==============

Robert

unread,
Mar 1, 2005, 1:01:51 PM3/1/05
to 43Fo...@googlegroups.com
Everyone,

Thank you for your help with the labeler info - I hadn't really taken
them that seriously but have started looking at them and they seem
really neat and useful.

Take care,
Robert Melvin

Ironjazz

unread,
Mar 1, 2005, 6:46:16 PM3/1/05
to 43Fo...@googlegroups.com
i have a brother pt 1180, bought from the latest rebates and discounted
price of 14.99, and i love the feeling that i sense i'm getting THERE!

However, i have a problem with the lead (blank) space of the tape
before the actual text are printed, regardless of what margin options
(-,#,##,###) that i've chosen.

Anyone know how i can save some of the wastage?

Michael Lindsey

unread,
Mar 1, 2005, 9:19:24 PM3/1/05
to 43Fo...@googlegroups.com
I have spent All Day looking for a PHP calendar for my scheduling
website. Literally, all day. I have learned how to install PHP on my
computer, which I also learned how to turn into a web server. I have
learned how to host a site, and learned how to make a wiki. I have
learned how to (imperfectly) implement style sheets. I have run into
the same problems, over and over, until I learned how to fix them.

All. Today.

The last eight solid hours have been spent trying to implement a basic
web calendar. All I want it to do is:

- be editable
- be web-based, so I can edit it at work when I can't download any
client programs
- be able to sync with either iCal OR Palm, because if I can get one I
can make the other work
- have recurring events.
- work

That's it. Notice that "not look like ass" isn't a requirement.
Because I ask only those five things. Now, I thought that
[url]http://www.k5n.us/[/url] would fit my needs. Looks nice, no
client, iCal AND Palm compatible... hey!

Finally figure out how to install MySQL. I think.

Finally configure MySQL. I thought.

Install the PHP folder in my server's document folder. Run it. Makes
me set a password, which involves several steps because the file I
have to edit is locked, without option to unlock it.

Finally, I hit a brick wall. See for yourself!

http://gypsy.is-a-geek.com/calendar

In case you don't want to link there:

>
>WebCalendar Error
>
>
>You must reconfigure your php.ini file to have magic_quotes_gpc set to ON.
>

Why is this a brick wall, you ask? Well, after taking another hour to
find out that my php.ini file is hidden, I DID change the setting. It
still gives me the same error. Even after clearing the history.

I will do anything for anyone that can make this work. Seriously. It
has become my Everest, and I'm not ashamed to ask for help. The .ini
file is too long to post here, but I'll e-mail it happily.


PLEASE help me fix this.

If it helps, I'm using OS X. Using the built-in Apache 1.3 server and PHP 5.

(The rest looks nice, so far: http://gypsy.is-a-geek.com ).

Karen Cooke

unread,
Mar 2, 2005, 3:14:16 AM3/2/05
to 43Fo...@googlegroups.com
Try restarting your webserver to make sure the changes to php.ini are
picked up....

Karen

Samuel DeVore

unread,
Mar 2, 2005, 9:50:56 AM3/2/05
to 43Fo...@googlegroups.com
There are some things to worry about, make sure that when you upload
to the server (either the php.ini file or the web calendar) that you
have not inadvertently changed the line endings (ftp with Transmit or
Interarchy can do this if not set right) Also make sure you are
changing the right php ini file, you can make a file that contains
<?php phpInfo(); ?> and look at it served by your webbrowserand make
sure that your settings 'took' also. If you are not just turing on
the php that is in os x, but installing another version (which you
probably are if you are running php 5) then the php.ini file might be
in a non standard place you could try 'locate php.ini' from the
terminal window. You can also look in the config file for apache and
see where the php that is in use is.

Also it looks like you have some other settings wrong in the calendar
as well. Check to make sure that your base url or some other setting
is correct in the calendars config file

HTH

Sam D

Robert

unread,
Mar 2, 2005, 1:03:18 PM3/2/05
to 43Fo...@googlegroups.com
Hello,

When I was looking at labelers I went to Amazon and found this review
of the Brother PT-1750

http://www.amazon.com/exec/obidos/tg/detail/-/B00005K4PO/
qid=1109620624/sr=8-2/ref=pd_bbs_2/002-8879406-2864819?
v=glance&s=electronics&n=507846

Anyhow, in the reviews one person says:

I was looking for an inexpensive, yet high quality, long lasting, and
durable way to identify dozens upon dozens of electrical wires behind
the instrument panel of my airplane. A fellow pilot made me aware of
the family of small electronic labelers available in the marketplace.
The Brother 1750 fits my needs perfectly. Offering two lines of crisp,
highly readable print gives a professional appearance to all labeling
needs. My experience is quite different than some reviewers who have
complained about wasted tape. In fact, I found that little wasted tape
is generated if you simply adjust the margins to a particular task and
this option is clearly spelled out in the instruction booklet. Since I
purchased the 1750, I have found many uses for it around the home
office and I wonder how I got by without one in the past! My only
complaint about the keyboard is that among the characters, it does not
offer a dash or hyphen, so when one is required, I find myself using a
star instead. That is a minor complaint though. The Brother 1750 gets
considerable mileage on AA battery power alone, so I have not felt the
need to purchase the adapter.

So I am wondering if this is a problem generally found up the the 1750
model?

Thanks for mentioning this - it was one of my concerns.

Regards,
Robert

BJ Snider

unread,
Mar 2, 2005, 1:23:00 PM3/2/05
to 43Fo...@googlegroups.com
The Brother PT-1750 is the model I own. I've gone more than 6 months on
the first set of batteries I put into this wonderful labeler.

Contrary to the review below, it does offer the dash or hyphen. To
access the dash/hyphen hold down the blue "Code" key on the lower left,
then press the "/ ," key (2nd from the right in the last row of
letters, next to the "M" key.)

--
BJ Snider
Systems Engineer
Infinite Ideas

Andy Bold

unread,
Mar 2, 2005, 5:02:38 PM3/2/05
to 43Fo...@googlegroups.com
On Tue, 1 Mar 2005 20:19:24 -0600, Michael Lindsey <ggy...@gmail.com> wrote:
[snipped]

>
> Finally, I hit a brick wall. See for yourself!
>
> http://gypsy.is-a-geek.com/calendar
>
> In case you don't want to link there:
>
> >
> >WebCalendar Error
> >
> >
> >You must reconfigure your php.ini file to have magic_quotes_gpc set to ON.
> >
>
> Why is this a brick wall, you ask? Well, after taking another hour to
> find out that my php.ini file is hidden, I DID change the setting. It
> still gives me the same error. Even after clearing the history.
>
> I will do anything for anyone that can make this work. Seriously. It
> has become my Everest, and I'm not ashamed to ask for help. The .ini
> file is too long to post here, but I'll e-mail it happily.
>
> PLEASE help me fix this.
>
> If it helps, I'm using OS X. Using the built-in Apache 1.3 server and PHP 5.
>
> (The rest looks nice, so far: http://gypsy.is-a-geek.com ).
>

Michael,

Don't give up - you're doing great so far. I've been using and
running Apache servers for a few years now, and I still get caught out
with PHP settings.

The clue is in the error message. The WebCalendar system
administrators guide at
http://cvs.sourceforge.net/viewcvs.py/*checkout*/webcalendar/webcalendar/docs/WebCalendar-SysAdmin.html?rev=HEAD&content-type=text/html
has this tip near the beginning:

" If you are using Apache as your web server and if you cannot or do
not want to enable magic_quotes_gpc for your entire site, you can
enable it just for WebCalendar. Create a .htaccess file in the
toplevel WebCalendar directory that contains a single line:

php_value magic_quotes_gpc 1

(For this to work with Apache, you must have the Apache AllowOverride
All directive enabled for the directory where WebCalendar is
installed. Additionally, PHP must be running as an Apache module, not
a CGI.)"

The only thing that I will add to this is to make sure that the user
that runs the web server can access the ".htaccess" file. (This user
defaults to "apache", or "nobody", or "http", or "www-data", or
something along these lines on Linux servers.)

I'm not familiar with Apache on MacOS, but I'll take a guess that PHP
is running as a module, so this should work.

You didn't mention if you'd dipped your toes into the pleasure that is
the Apache configuration file yet, but that's where you need to go to
check whether the "AllowOverride all" setting has been configured.

Once you are sure that "AllowOverride" is set, and that the web server
user can access the ".htaccess" file, restart Apache to make sure that
the changes have taken effect. This is the real important piece.
I've got a couple of PHP based web apps running, and I've noticed that
Apache seems to cache the ".htaccess" settings. Also, if you change
any of the PHP files (for configuration setting changes for example)
then I would recommend you restart Apache following any changes as
Apache seems to cache some of the PHP. (Though maybe that's just me
being too impatient after I make changes.)

Just want to end off with a thanks for pointing out the k5n site -
I've been looking for a decent web based calendar to install at work
for some of my colleagues to use, and this looks perfect.

Stick with it, and don't hesitate to drop me a note either via the
list or directly if you're still having problems.

--
Andy

Michael Lindsey

unread,
Mar 2, 2005, 5:50:25 PM3/2/05
to 43Fo...@googlegroups.com
Andy,

Thanks for the advice! Finally, I got it running. I ended up booting
from my backed up drive, and starting the whole thing over. Worked
like a charm, mostly.

I'm still trying to figure out why none of my changes save... check it
out for yourself, if you like:

http://gypsy.is-a-geek.com/webcalendar/week.php

If it loads as http://gypsys.computer.local/etc/and so on, just type
it in again. (That's my next question. ;))

See what I mean? You can interact with the program however you like,
but any attempt to save just refreshes the screen without making any
changes.

My other question is, why are my links being changed to a localhost
link? (gypsys.computer) I typed them in, longhand, as the correct
HTTP links. I didn't even notice the problem until using it from
another terminal, running IE and Win2K. Grrr.

Anyhow, thanks again for the advice! Please keep me posted on how
WebCalendar works for you.

-Mike

S. William Schulz

unread,
Mar 2, 2005, 7:47:13 PM3/2/05
to 43Fo...@googlegroups.com
A couple of things I would check:

1) In webcal there are several settings affecting who is allowed to
add to the calendar, and who then is allowed to view the calendar.
Often times, although anyone can add to the calendar (guest mode, if
you will), they will not be allowed to see the posted event until it
is approved by the owner of the calendar, so.... If that is the case,
you can either 1) change the setting for showing unapproved events to
true, or 2) log in as the calendar owner. You may find your calendar
full of unapproved events.

Another option, though less likely, is that the user the calendar is
running as doesn't have INSERT privileges in MySQL. I say less likely
as there is already some non-default data in the file.

2) As to the local links, I would check the setting of the ServerName
variable in the apache config file (httpd.conf). It is typically
commented out, e.g. # ServerName your.computer, in which case apache
will canonicalize all links by prepending the FQDN of the local host
to all links. If this is the case for you, simple remove the comment
marked and enter your hostname on that line, i.e.

ServerName gypsy.is-a-geek.com

If you have configured other virtualhosts on this box, then you'll
have to modify the ServerName variable in the specific vhost entry,
e.g. _default_.

Michael Lindsey

unread,
Mar 2, 2005, 8:52:25 PM3/2/05
to 43Fo...@googlegroups.com
Thank you for the info! Sorry, everyone.. meant to reply person and
clicked reply group instead. :(

-Mike

DH

unread,
Mar 2, 2005, 9:25:06 PM3/2/05
to 43Fo...@googlegroups.com
Why are there two topics in this topic? Very confusing.

Reply all
Reply to author
Forward
0 new messages