Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
linux:open source:tcl copy(p)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
rsmereka  
View profile   Translate to Translated (View Original)
 More options 30 Sep, 19:15
From: rsmereka <rsmer...@future-lab.com>
Date: Wed, 30 Sep 2009 11:15:39 -0700 (PDT)
Local: Wed 30 Sep 2009 19:15
Subject: linux:open source:tcl copy(p)
Hi all,

I work with D3 VME on a daily basis and I have started experimenting
with the open source version of OpenQM.

On D3 I can run the following command from TCL:
   COPY DOS:C: /transfer/somefile.txt

to copy a file from the Windows 'C' drive.

I have tried so many combinations with OpenQM, including:
   COPYP PATH:/home/me/somefile.txt

as per 'FILERULE' (I have 'FILERULE' set to 7 in 'qmconfig'), as well
as:
   COPYP UNIX:/home/me/somefile.txt

as per Tony G in this post (http://groups.google.co.uk/group/openqm/
browse_thread/thread/cea3f4130e7c2634)
as well as:
   COPYP /home/me/somefile.txt

on an off chance that OpenQM would recognize the path separator as the
first character.

In each case, I get the message file not found.

How can I copy files back and forth between Linux and OpenQM using
TCL?

TIA
Rick


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
eppick77  
View profile   Translate to Translated (View Original)
 More options 30 Sep, 19:24
From: eppick77 <eppic...@yahoo.com>
Date: Wed, 30 Sep 2009 11:24:23 -0700 (PDT)
Local: Wed 30 Sep 2009 19:24
Subject: Re: linux:open source:tcl copy(p)
Rick,

One method would to be set a file pointer in the md of QM - it would
an F in att 1 and the path in att 2.

1: F
2: /home/me

This would treat the linux directory as a file.  You could then copy
items back and forth from the "file".

Eugene

On Sep 30, 2:15 pm, rsmereka <rsmer...@future-lab.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Powick  
View profile   Translate to Translated (View Original)
 More options 30 Sep, 20:49
From: Kevin Powick <kpow...@gmail.com>
Date: Wed, 30 Sep 2009 12:49:10 -0700 (PDT)
Local: Wed 30 Sep 2009 20:49
Subject: Re: linux:open source:tcl copy(p)

On Sep 30, 2:15 pm, rsmereka <rsmer...@future-lab.com> wrote:

> I work with D3 VME on a daily basis and I have started experimenting
> with the open source version of OpenQM.

> On D3 I can run the following command from TCL:
>    COPY DOS:C: /transfer/somefile.txt

When you do this you are using D3's OSFI, which allows D3 to
communicate with various file systems and/or hosts via existing
"drivers".  "DOS" is a driver entry in the DM,HOSTS file which defines
communication with the underlying Windows file system.  AFAIK, QM does
not have such a concept, thus you must first define the directory
"file" in your VOC so that the QM COPY command can find/access it.

Btw, using "COPY DOS:C: /" on D3 is somewhat redundant because there
exists in the D3 Hosts file an entry for "C".  You should be able to
accomplish exactly the same thing with the command COPY C: /transfer/
somefile.txt

--
Kevin Powick


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rsmereka  
View profile   Translate to Translated (View Original)
 More options 30 Sep, 21:16
From: rsmereka <rsmer...@future-lab.com>
Date: Wed, 30 Sep 2009 13:16:57 -0700 (PDT)
Local: Wed 30 Sep 2009 21:16
Subject: Re: linux:open source:tcl copy(p)
Thanks eppick77,

Works like a charm. At first, I was concerned that OpenQM may not
properly translate the LF's to FM's/AM's but once I copied a sample
text file from Linux and then read it in OpenQM using CT and ED, I
could see that OpenQM did the translation.

>When you do this you are using D3's OSFI, which allows D3 to
>communicate with various file systems and/or hosts via existing
>"drivers".  "DOS" is a driver entry in the DM,HOSTS file which defines
>communication with the underlying Windows file system.  AFAIK, QM does
>not have such a concept, thus you must first define the directory
>"file" in your VOC so that the QM COPY command can find/access it.
>Btw, using "COPY DOS:C: /" on D3 is somewhat redundant because there
>exists in the D3 Hosts file an entry for "C".  You should be able to
>accomplish exactly the same thing with the command COPY C: /transfer/
>somefile.txt

Kevin,

After reading Tony's G's post of this topic, I understood what D3 was
doing. I, however, did not know how to accomplish this in OpenQM. I
just tried using your tip on D3:
   COPY C: /transfer/somefile.txt
   [202] '/transfer/somefile.txt not on file.
   [401] no items present.

When I change the syntax to:
   COPY DOS:C: /transfer/somefile.txt

the copy works fine.

It appears that the item in the Hosts file is missing. BTW, I cannot
find a file called Hosts.

Rick


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony G  
View profile   Translate to Translated (View Original)
 More options 30 Sep, 21:56
From: "Tony G" <wosclx...@sneakemail.com>
Date: Wed, 30 Sep 2009 13:56:02 -0700
Local: Wed 30 Sep 2009 21:56
Subject: RE: linux:open source:tcl copy(p)
The hosts file is in DM, so you can see it using:
  sort dm,hosts,

The hosts item DOS goes to the default Windows drive.  It's
different from the "C" and other drivers in that it does not
convert between tabs and spaces - which may or may not be what
you want.

I believe it's legal to cascade hosts references (like DOS:C:)
but it shouldn't be necessary and is probably subject to issues.

When using OSFI, the driver:path is equivalent to the MV file and
the DOS filename is the MV item ID, so:
  COPY DOS:/temp myprog.txt
  TO: (bp myprog
    or
  COPY BP PROG1 PROG2
  TO: (d:/backups/bp

Note that all slashes are forward and normal rules apply for
changing file=item names.  Keep the host:path reference together
as though it's all a single filename.  Casing doesn't matter in
DOS but does for *nix.

References like //server/path are possible but there are
complications - see the TL forum or contact TL for assistance.

I present this here in case at some point QM users need to work
out migration, or if Martin wants to add similar functionality at
some point.

HTH
T


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google