× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



A coworker is trying to use his home directory to store a file in
preparation for attaching it to an email. His frustration at this
time
is that when he executes the command the MAIL command is erroring out
with a 'No such path or directory'. I am wondering if a tilde (~)
should be used. Does the tilde (~) mean the same thing from the
AS/400
environment as it does in the QSH environment?

Thanks in advance.

Marvin

Yes. Tilde has special significance when appearing at the beginning of the
path (not preceded by a slash). In that case, it means "my home." For
example, regardless of your current directory, here is a way to get a
listing of the files in your home directory:

ls -l ~

Or if you want to copy a file named myfile from your home directory to the
current directory with name newfile, you could do:

cp ~/myfile ./newfile


If you have a file named ~abc, you should be able to work with it. Likewise
a~bc. So in summary, you'd be in trouble if you created a directory whose
name is the tilde character alone. (But I'll bet you cannot create a
directory by that name.)

So. What is the filename, what is the problem, and what are the error
messages. "having trouble" isn't usually technical enough for problem
resolution.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"If I were running the world I would have it rain only between 2 and 5 A.M.
Anyone who was out then ought to get wet."
-- William Lyon Phelps


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.