× 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.



On Tue, 17 Feb 2004, Terry Grider wrote:
>
> I replaced the DOS COPY with:
>
> cp ${CHARTER_FILES}/EXTMNTCF.CSV \\S103080D\QDLS\OPERATNS\EXTMNTCF.CSV
>

First of all, the '\' character is an escape character, it means that you
should interpret the next character literally, rather than as a special
value.  Therefore, you cannot use the backslash in the way that you're
trying to use it.

For example, if you had a filename with a semi-colon in it, you could use
the backslash to access it:

   $ touch My\;File
   $ ls -l My*
   -rw-r--r--  1 klemscot  wheel  0 Feb 17 12:02 My;File

Secondly, the "UNC" pathname format is a Windows thing, though you can use
something similar if you install SAMBA on your Unix box.   Unfortunately,
last time I tried it, SAMBA is not compatible with the iSeries NetServer
(though SAMBA works great when accessing a real Windows computer, much
better than /QNTC does!!)

If you do want to try it with SAMBA, you'll need to do something like
this:

$ smbclient //S103080D/QDLS password -c "put ${CHARTER_FILES}/EXTMNTCF.CSV 
OPERATNS/EXTMNTCF.CSV"

(replace "password" with your password, or if you omit it, it'll prompt you)
You can also specify -U followed by a userid if you want to connect to the
network share with a different userid than the one you use on the Unix
box.

Unfortunately, as I mentioned, SAMBA doesn't appear to work with iSeries
NetServer.

> These commands seem to fail.  Anyone with experience in these system
> know if the CP command supports the UNC File syntax and how do you
> format the RMTCMD so as not to get a syntax error from the parenthesis
> in the command parms?  Quotes?

The alternatives to using Windows Networking are NFS and FTP.

NFS is a similar scenario where you'll copy the file from one directory to
another.  It works well (better, IMHO than Windows Networking) but
requires you to mount and unmount the share, which would be very
cumbersome for something like this.

FTP is not a file sharing protocol, but rather a file transfer protocol...
meaning it cannot be used to access files in-place, but rather only to
copy them from computer to computer.   Since FTP is scriptable, I think it
would work great in this scenario...


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.