As I've mentioned, I am on Universe, on Linux, using Accuterm. There is a format in these programs I've inherited that looks like this....
FPATH='C:\\Users\\kathleenh\\Downloads\\'
DOC='2022-Farm-Market-Application.pdf'
PRINT CHAR(27):CHAR(2):"<":FPATH:DOC:CHAR(13)
Don't really understand it, but don't need to if it works - which it does :)
But what I am trying to do right now is move a doc (jpeg, xlsx, word, pdf, whatever) from either a network spot OR a c drive location to another spot within a basic program. I tried using a '<' and then a '>' for the two locations but that didn't work.
My question is does anyone know how (or if possible) to use this feature (which I think is Accuterm) to move a file from one location to another?
OR......
What other functions / tools would work to do this? Obviously the user has to have permission to both files. Since I can do the above command to either the C drive or network drives I imagine access is not the issue or holdup - just my ignorance. I tried just going down to linux and use the 'mv' command but that didn't work either :(
Thanks for any suggestions.
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
Page 1 / 1
As I've mentioned, I am on Universe, on Linux, using Accuterm. There is a format in these programs I've inherited that looks like this....
FPATH='C:\\Users\\kathleenh\\Downloads\\'
DOC='2022-Farm-Market-Application.pdf'
PRINT CHAR(27):CHAR(2):"<":FPATH:DOC:CHAR(13)
Don't really understand it, but don't need to if it works - which it does :)
But what I am trying to do right now is move a doc (jpeg, xlsx, word, pdf, whatever) from either a network spot OR a c drive location to another spot within a basic program. I tried using a '<' and then a '>' for the two locations but that didn't work.
My question is does anyone know how (or if possible) to use this feature (which I think is Accuterm) to move a file from one location to another?
OR......
What other functions / tools would work to do this? Obviously the user has to have permission to both files. Since I can do the above command to either the C drive or network drives I imagine access is not the issue or holdup - just my ignorance. I tried just going down to linux and use the 'mv' command but that didn't work either :(
Thanks for any suggestions.
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
FPATH='C:\\Users\\kathleenh\\Downloads\\'
DOC='2022-Farm-Market-Application.pdf'
PRINT CHAR(27):CHAR(2):"<":FPATH:DOC:CHAR(13)
Don't really understand it, but don't need to if it works - which it does :)
But what I am trying to do right now is move a doc (jpeg, xlsx, word, pdf, whatever) from either a network spot OR a c drive location to another spot within a basic program. I tried using a '<' and then a '>' for the two locations but that didn't work.
My question is does anyone know how (or if possible) to use this feature (which I think is Accuterm) to move a file from one location to another?
OR......
What other functions / tools would work to do this? Obviously the user has to have permission to both files. Since I can do the above command to either the C drive or network drives I imagine access is not the issue or holdup - just my ignorance. I tried just going down to linux and use the 'mv' command but that didn't work either :(
Thanks for any suggestions.
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
As far as what you're doing, you can read up on it in the AccuTerm userman.pdf which should be located in your AccuTerm installation directory on your PC. Most of this information is going to be in chapters 2 and 3, I think. CHR(23) is ESC and CHR(2) is STX and CHR (13) is CR, but you certainly already knew that. I'm only pointing it out because, especially STX is a good, fairly unique key-word to search the document on.
To use this feature (external program execution) you'd need a Windows command-line that can do the transfer for you. Instead, you might want to look into the various AccuTerm file transfer options (also in the user manual, chapter 4). Are you always moving from the user's PC and the DB server? For text files, I use the FTWIZ all the time. You can setup job templates to make this easier to do for common types of transfers. Since I'm bridging this through the AccuTerm installation on my PC, I'm also using windows-style network paths, like \\\\server\\dir1\\dir2\\...\\dirn\\docname. Given how we've setup our networks, I can easily move things around. I believe that you can specify binary option when needed, though I haven't really had to do that.
Some of that might help ... I hope :-).
------------------------------
Tyrel Marak
Technical Support Manager
Aptron Corporation
Florham Park NJ US
------------------------------
As I've mentioned, I am on Universe, on Linux, using Accuterm. There is a format in these programs I've inherited that looks like this....
FPATH='C:\\Users\\kathleenh\\Downloads\\'
DOC='2022-Farm-Market-Application.pdf'
PRINT CHAR(27):CHAR(2):"<":FPATH:DOC:CHAR(13)
Don't really understand it, but don't need to if it works - which it does :)
But what I am trying to do right now is move a doc (jpeg, xlsx, word, pdf, whatever) from either a network spot OR a c drive location to another spot within a basic program. I tried using a '<' and then a '>' for the two locations but that didn't work.
My question is does anyone know how (or if possible) to use this feature (which I think is Accuterm) to move a file from one location to another?
OR......
What other functions / tools would work to do this? Obviously the user has to have permission to both files. Since I can do the above command to either the C drive or network drives I imagine access is not the issue or holdup - just my ignorance. I tried just going down to linux and use the 'mv' command but that didn't work either :(
Thanks for any suggestions.
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
FPATH='C:\\Users\\kathleenh\\Downloads\\'
DOC='2022-Farm-Market-Application.pdf'
PRINT CHAR(27):CHAR(2):"<":FPATH:DOC:CHAR(13)
Don't really understand it, but don't need to if it works - which it does :)
But what I am trying to do right now is move a doc (jpeg, xlsx, word, pdf, whatever) from either a network spot OR a c drive location to another spot within a basic program. I tried using a '<' and then a '>' for the two locations but that didn't work.
My question is does anyone know how (or if possible) to use this feature (which I think is Accuterm) to move a file from one location to another?
OR......
What other functions / tools would work to do this? Obviously the user has to have permission to both files. Since I can do the above command to either the C drive or network drives I imagine access is not the issue or holdup - just my ignorance. I tried just going down to linux and use the 'mv' command but that didn't work either :(
Thanks for any suggestions.
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
Not sure exactly what you're asking, it sounds like you want to move a file within the user's PC from one Folder to another.
You could do it by creating a simply '.bat' program that you would write to the user's PC using Accuterm's FTS (Routine) with the instructions of which file and from what folder to what folder using the DOS Move command. Once the .bat file has been written to the user's PC you could automatically execute it using the DOSSVC command.
Depending on how complex the transfer is, you may not even have to write a .bat file you could simply use DOSSVC send a MOVE command and pass the arguments that MOVE expects.
I have used the DOSSVC command to execute any program on the user's PC. Most of our reports are setup to feed into excel, by creating a well formatted Excel XML document, writing it to the user's PC then starting Excel automatically.
Regards, Sam
------------------------------
Sam Powell
President/Developer
Advanced Transportation Systems Inc
Littleton CO US
------------------------------
Hi Kathleen,
Not sure exactly what you're asking, it sounds like you want to move a file within the user's PC from one Folder to another.
You could do it by creating a simply '.bat' program that you would write to the user's PC using Accuterm's FTS (Routine) with the instructions of which file and from what folder to what folder using the DOS Move command. Once the .bat file has been written to the user's PC you could automatically execute it using the DOSSVC command.
Depending on how complex the transfer is, you may not even have to write a .bat file you could simply use DOSSVC send a MOVE command and pass the arguments that MOVE expects.
I have used the DOSSVC command to execute any program on the user's PC. Most of our reports are setup to feed into excel, by creating a well formatted Excel XML document, writing it to the user's PC then starting Excel automatically.
Regards, Sam
------------------------------
Sam Powell
President/Developer
Advanced Transportation Systems Inc
Littleton CO US
------------------------------
Not sure exactly what you're asking, it sounds like you want to move a file within the user's PC from one Folder to another.
You could do it by creating a simply '.bat' program that you would write to the user's PC using Accuterm's FTS (Routine) with the instructions of which file and from what folder to what folder using the DOS Move command. Once the .bat file has been written to the user's PC you could automatically execute it using the DOSSVC command.
Depending on how complex the transfer is, you may not even have to write a .bat file you could simply use DOSSVC send a MOVE command and pass the arguments that MOVE expects.
I have used the DOSSVC command to execute any program on the user's PC. Most of our reports are setup to feed into excel, by creating a well formatted Excel XML document, writing it to the user's PC then starting Excel automatically.
Regards, Sam
------------------------------
Sam Powell
President/Developer
Advanced Transportation Systems Inc
Littleton CO US
------------------------------
I already have the browse, select, and execute for the record/file working. I can also save the path from the browse.
What I do not know how to do is save the pulled up doc to the set location on the network, as that would require some kind of move command. I'm sure this is not overly difficult but I do not know a command that will work for moving any kind of file (pdf, jpeg, word doc, whatever) from one location to another that includes the users C drive and any network location.
THanks!
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
Thanks for these ideas guys - Specifically this is to be able to pull up a record/file in C: or anywhere on the network, through a program in Unidata, potentially move said record/file to a predetermined location on the network (not a users c:) and then save the path to the document within a unidata file. Not data perse although it could be.
I already have the browse, select, and execute for the record/file working. I can also save the path from the browse.
What I do not know how to do is save the pulled up doc to the set location on the network, as that would require some kind of move command. I'm sure this is not overly difficult but I do not know a command that will work for moving any kind of file (pdf, jpeg, word doc, whatever) from one location to another that includes the users C drive and any network location.
THanks!
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
I already have the browse, select, and execute for the record/file working. I can also save the path from the browse.
What I do not know how to do is save the pulled up doc to the set location on the network, as that would require some kind of move command. I'm sure this is not overly difficult but I do not know a command that will work for moving any kind of file (pdf, jpeg, word doc, whatever) from one location to another that includes the users C drive and any network location.
THanks!
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
You must must must read the Accuterm manual first. See link above.
However Esc Stx P will run *any* script you want on the host system. Any. Script. Anything.
It basically opens a hidden window and runs the script and then closes the window
So it would be good to also pipe the error or log file into another text file so you can see if it barfs or not as well.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
Thanks for these ideas guys - Specifically this is to be able to pull up a record/file in C: or anywhere on the network, through a program in Unidata, potentially move said record/file to a predetermined location on the network (not a users c:) and then save the path to the document within a unidata file. Not data perse although it could be.
I already have the browse, select, and execute for the record/file working. I can also save the path from the browse.
What I do not know how to do is save the pulled up doc to the set location on the network, as that would require some kind of move command. I'm sure this is not overly difficult but I do not know a command that will work for moving any kind of file (pdf, jpeg, word doc, whatever) from one location to another that includes the users C drive and any network location.
THanks!
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
I already have the browse, select, and execute for the record/file working. I can also save the path from the browse.
What I do not know how to do is save the pulled up doc to the set location on the network, as that would require some kind of move command. I'm sure this is not overly difficult but I do not know a command that will work for moving any kind of file (pdf, jpeg, word doc, whatever) from one location to another that includes the users C drive and any network location.
THanks!
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
It's like we still live in 1980...
Accuterm Manual
This link is to the Manual, search for Esc Stx
Esc Stx P will allow you to run ANY script on the underlying host system.
Make sure you pipe the log and errors into a text file that you can read to make sure it succeeded or failed.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
Evidently this stupid interface will not allow me to post a bald link
It's like we still live in 1980...
Accuterm Manual
This link is to the Manual, search for Esc Stx
Esc Stx P will allow you to run ANY script on the underlying host system.
Make sure you pipe the log and errors into a text file that you can read to make sure it succeeded or failed.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
It's like we still live in 1980...
Accuterm Manual
This link is to the Manual, search for Esc Stx
Esc Stx P will allow you to run ANY script on the underlying host system.
Make sure you pipe the log and errors into a text file that you can read to make sure it succeeded or failed.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
What a plain Esc Stx > or < does is just thrown a file at the underlying system
Like "DO" something with this file you system!
So if you have a PDF reader, throwing a file at the OS makes it open the PDF for example.
You don't have to say OPEN file, just FILE basically. The system knows already what to do with the file
Same for doc or text or exl or whatever. You don't have to launch excel, you just throw the file into the system and it launches excel by itself.
That's what ESC STX does
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
By the way, in your original you said you didn't know what it's doing.
What a plain Esc Stx > or < does is just thrown a file at the underlying system
Like "DO" something with this file you system!
So if you have a PDF reader, throwing a file at the OS makes it open the PDF for example.
You don't have to say OPEN file, just FILE basically. The system knows already what to do with the file
Same for doc or text or exl or whatever. You don't have to launch excel, you just throw the file into the system and it launches excel by itself.
That's what ESC STX does
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
What a plain Esc Stx > or < does is just thrown a file at the underlying system
Like "DO" something with this file you system!
So if you have a PDF reader, throwing a file at the OS makes it open the PDF for example.
You don't have to say OPEN file, just FILE basically. The system knows already what to do with the file
Same for doc or text or exl or whatever. You don't have to launch excel, you just throw the file into the system and it launches excel by itself.
That's what ESC STX does
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
Yes, I could 'see' that it was executing the path and opening the item but really why 'stx' did so I do not know.... but that's really here nor there.
I was able to play with accuterm and get it to 'upload' a pdf from C to our IBM, and then 'download' it from the IBM to another network drive, but the pfd will not open after that move. I thought maybe it had to do with hashed or directory files so I tried both ways.
ftp is working to move items around on the network of course, but not sure how to use that to the C drive. Google has some details but I didn't get anywhere with it.
I'm just surprised after all these years there isn't an easy tool for this.
Thanks again!
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
Hi Will, thanks for the info.
Yes, I could 'see' that it was executing the path and opening the item but really why 'stx' did so I do not know.... but that's really here nor there.
I was able to play with accuterm and get it to 'upload' a pdf from C to our IBM, and then 'download' it from the IBM to another network drive, but the pfd will not open after that move. I thought maybe it had to do with hashed or directory files so I tried both ways.
ftp is working to move items around on the network of course, but not sure how to use that to the C drive. Google has some details but I didn't get anywhere with it.
I'm just surprised after all these years there isn't an easy tool for this.
Thanks again!
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
Yes, I could 'see' that it was executing the path and opening the item but really why 'stx' did so I do not know.... but that's really here nor there.
I was able to play with accuterm and get it to 'upload' a pdf from C to our IBM, and then 'download' it from the IBM to another network drive, but the pfd will not open after that move. I thought maybe it had to do with hashed or directory files so I tried both ways.
ftp is working to move items around on the network of course, but not sure how to use that to the C drive. Google has some details but I didn't get anywhere with it.
I'm just surprised after all these years there isn't an easy tool for this.
Thanks again!
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
It tells Accuterm hey, I want you to do something for me
And then Accuterm is who is executing the command on your behalf
A PDF will *only* open, if the system attempting to open it, has a program that can open it.
So it's more likely that you are trying to open the PDF on a system which does not know what a PDF even is
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
https://static.zumasys.com/zumasys/atfiles/manuals/at7/AccuTerm-7-User-Manual.pdf
You must must must read the Accuterm manual first. See link above.
However Esc Stx P will run *any* script you want on the host system. Any. Script. Anything.
It basically opens a hidden window and runs the script and then closes the window
So it would be good to also pipe the error or log file into another text file so you can see if it barfs or not as well.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
You must must must read the Accuterm manual first. See link above.
However Esc Stx P will run *any* script you want on the host system. Any. Script. Anything.
It basically opens a hidden window and runs the script and then closes the window
So it would be good to also pipe the error or log file into another text file so you can see if it barfs or not as well.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
I need to move a pdf or jpeg from my desktop C drive to a network drive. I need it then to display correctly after the move. Yes, pdfs work in the network location, that's not the issue.
The pdf works on my C drive. I want to move it any way I can to my network drive. Then it needs to display correctly (as it did on the C drive).
Do you currently do that? If so what app are you using to do so? If you are using accuterm to do so can you show me the details?
Thanks.
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
I appreciate the info Will but you've gone off on a tangent. I do not care about the stx. Focus Will ;)
I need to move a pdf or jpeg from my desktop C drive to a network drive. I need it then to display correctly after the move. Yes, pdfs work in the network location, that's not the issue.
The pdf works on my C drive. I want to move it any way I can to my network drive. Then it needs to display correctly (as it did on the C drive).
Do you currently do that? If so what app are you using to do so? If you are using accuterm to do so can you show me the details?
Thanks.
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
I need to move a pdf or jpeg from my desktop C drive to a network drive. I need it then to display correctly after the move. Yes, pdfs work in the network location, that's not the issue.
The pdf works on my C drive. I want to move it any way I can to my network drive. Then it needs to display correctly (as it did on the C drive).
Do you currently do that? If so what app are you using to do so? If you are using accuterm to do so can you show me the details?
Thanks.
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
The local computer, like your own, or your co-worker who is on an X-windows device, or a phone.... is entirely in control of whether you can view a PDF or not.
If the person trying to view the PDF, does not have a PDF Viewer of some kind, they will not be able to view it.
Nothing to do with Accuterm.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
I appreciate the info Will but you've gone off on a tangent. I do not care about the stx. Focus Will ;)
I need to move a pdf or jpeg from my desktop C drive to a network drive. I need it then to display correctly after the move. Yes, pdfs work in the network location, that's not the issue.
The pdf works on my C drive. I want to move it any way I can to my network drive. Then it needs to display correctly (as it did on the C drive).
Do you currently do that? If so what app are you using to do so? If you are using accuterm to do so can you show me the details?
Thanks.
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
I need to move a pdf or jpeg from my desktop C drive to a network drive. I need it then to display correctly after the move. Yes, pdfs work in the network location, that's not the issue.
The pdf works on my C drive. I want to move it any way I can to my network drive. Then it needs to display correctly (as it did on the C drive).
Do you currently do that? If so what app are you using to do so? If you are using accuterm to do so can you show me the details?
Thanks.
------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------
Remember that Stx can execute any command, the underlying system itself can execute.
Any command, any script, anything. Like Move for example.
However
If you can shell into linux and the mv does not work to move the file, that means you *do not* have permission to put the file in the location you want. You should get an error.
Edit: 20 minutes later
OK thinking about this more, it does not mean that *you* do not have permission.
Since Linux is underlying Universe, and Linux has no clue who *you* Kathleen are exactly at all, you are using the permissions of the Universe root user whoever that is to try to do the mv command. Not your own permissions. As I recall.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
So to MOVE a file from one spot to another, you must execute the MOVE command with the accuterm script.
Remember that Stx can execute any command, the underlying system itself can execute.
Any command, any script, anything. Like Move for example.
However
If you can shell into linux and the mv does not work to move the file, that means you *do not* have permission to put the file in the location you want. You should get an error.
Edit: 20 minutes later
OK thinking about this more, it does not mean that *you* do not have permission.
Since Linux is underlying Universe, and Linux has no clue who *you* Kathleen are exactly at all, you are using the permissions of the Universe root user whoever that is to try to do the mv command. Not your own permissions. As I recall.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
Remember that Stx can execute any command, the underlying system itself can execute.
Any command, any script, anything. Like Move for example.
However
If you can shell into linux and the mv does not work to move the file, that means you *do not* have permission to put the file in the location you want. You should get an error.
Edit: 20 minutes later
OK thinking about this more, it does not mean that *you* do not have permission.
Since Linux is underlying Universe, and Linux has no clue who *you* Kathleen are exactly at all, you are using the permissions of the Universe root user whoever that is to try to do the mv command. Not your own permissions. As I recall.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
That you have a mapped drive on your Windows computer, that is *not* mapped in Linux at all. So the Linux system doesn't know about it, or perhaps has it mapped to a different name.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
Actually I just thought of another reason why you can *see* a network drive location from your PC, but linux will not *mv* something to it.
That you have a mapped drive on your Windows computer, that is *not* mapped in Linux at all. So the Linux system doesn't know about it, or perhaps has it mapped to a different name.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
That you have a mapped drive on your Windows computer, that is *not* mapped in Linux at all. So the Linux system doesn't know about it, or perhaps has it mapped to a different name.
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
Is this for you own use/a tool for your shop, or is it part of a product to be deployed in a variety of settings? I guess what I'm getting at is: Does it just have to work for you/your group, or does it have to be a very flexible/generic solution?
I don't think I know enough to give a complete answer if it needs to be latter, though depending on the number of installations what I have to say about the former might be helpful for the latter.
I have also tried using the transfer methods available via AccuTerm's mv library (i.e. living on the DB server) to transfer non-simple-text files without any luck. I may be doing it wrong, but I've tried every option I could find. If someone knows the correct options to use, Kathleen and I are all ears :-) !
If it's the former (or a small number of installations), then you can approach it either way discussed, but there can be difficulties to overcome. If you have a different user on each box (i.e. you're not using a single-sign-on), this can be a hang-up. Further, if you're trying to transfer using native Windows commands, then you might need to deal with Windows renaming the files in the mounted/mapped Linux partition. If the Linux name is not valid in Windows, Windows will give it an essentially meaningless (except to Windows) name to keep track of it. If you're careful with your naming and permissions are not an issue, then you can use basically the same AccuTerm trick to execute the move from Windows. (Side-note: there are ftp clients you can run from Windows if you're not mounting/mapping the Linux partition on you PC.) To come from the Linux side, you need to mount a Windows drive so that Linux can see it (probably not one physically on your PC) and then you can use mv. Do a Google search; you can find any number of threads describing how to mount a Windows partition. (Second side-note: consider setting up file-sharing via Samba.) To move the file, you would need to EXECUTE the command on the DB server from within your program.
Finally, just to be clear, Will and I *were* trying to answer the question implicit in your subject. You stated "Not sure if this command is accuterm but..." We've just been trying to say that if you read the Accuterm user manual and do a search for STX you will see the different ways that Accuterm can interrupt itself to go out and do things on the PC where it's installed. In the case of opening a pdf, if you open a "Run" window on your PC and type in the full path C:\\Users\\kathleenh\\Downloads\\2022-Farm-Market-Application.pdf your PC knows what to do. Via the filetype stored in your registry it knows what is used to open .pdf files (probably Acrobat) and it launches that App handing it the document to open. That's exactly what Accuterm is triggering via the PRINT you described in your original post. What Will and I were trying to explain is that printing [ESC][STX]<[any command your PC can handle][CR] is just one of the ways you can interrupt Accuterm, and cause it to trigger something outside itself. We've just been trying to explain that you can find full descriptions of what you described in your original post, along with other behaviors, by searching the Accuterm user manual for STX. (Third side note: The only difference between [ESC][STX]< and [ESC][STX]> is whether or not Accuterm waits for the command to "finish" before resuming its processing.)
------------------------------
Tyrel Marak
Technical Support Manager
Aptron Corporation
Florham Park NJ US
------------------------------
Kathleen,
Is this for you own use/a tool for your shop, or is it part of a product to be deployed in a variety of settings? I guess what I'm getting at is: Does it just have to work for you/your group, or does it have to be a very flexible/generic solution?
I don't think I know enough to give a complete answer if it needs to be latter, though depending on the number of installations what I have to say about the former might be helpful for the latter.
I have also tried using the transfer methods available via AccuTerm's mv library (i.e. living on the DB server) to transfer non-simple-text files without any luck. I may be doing it wrong, but I've tried every option I could find. If someone knows the correct options to use, Kathleen and I are all ears :-) !
If it's the former (or a small number of installations), then you can approach it either way discussed, but there can be difficulties to overcome. If you have a different user on each box (i.e. you're not using a single-sign-on), this can be a hang-up. Further, if you're trying to transfer using native Windows commands, then you might need to deal with Windows renaming the files in the mounted/mapped Linux partition. If the Linux name is not valid in Windows, Windows will give it an essentially meaningless (except to Windows) name to keep track of it. If you're careful with your naming and permissions are not an issue, then you can use basically the same AccuTerm trick to execute the move from Windows. (Side-note: there are ftp clients you can run from Windows if you're not mounting/mapping the Linux partition on you PC.) To come from the Linux side, you need to mount a Windows drive so that Linux can see it (probably not one physically on your PC) and then you can use mv. Do a Google search; you can find any number of threads describing how to mount a Windows partition. (Second side-note: consider setting up file-sharing via Samba.) To move the file, you would need to EXECUTE the command on the DB server from within your program.
Finally, just to be clear, Will and I *were* trying to answer the question implicit in your subject. You stated "Not sure if this command is accuterm but..." We've just been trying to say that if you read the Accuterm user manual and do a search for STX you will see the different ways that Accuterm can interrupt itself to go out and do things on the PC where it's installed. In the case of opening a pdf, if you open a "Run" window on your PC and type in the full path C:\\Users\\kathleenh\\Downloads\\2022-Farm-Market-Application.pdf your PC knows what to do. Via the filetype stored in your registry it knows what is used to open .pdf files (probably Acrobat) and it launches that App handing it the document to open. That's exactly what Accuterm is triggering via the PRINT you described in your original post. What Will and I were trying to explain is that printing [ESC][STX]<[any command your PC can handle][CR] is just one of the ways you can interrupt Accuterm, and cause it to trigger something outside itself. We've just been trying to explain that you can find full descriptions of what you described in your original post, along with other behaviors, by searching the Accuterm user manual for STX. (Third side note: The only difference between [ESC][STX]< and [ESC][STX]> is whether or not Accuterm waits for the command to "finish" before resuming its processing.)
------------------------------
Tyrel Marak
Technical Support Manager
Aptron Corporation
Florham Park NJ US
------------------------------
Is this for you own use/a tool for your shop, or is it part of a product to be deployed in a variety of settings? I guess what I'm getting at is: Does it just have to work for you/your group, or does it have to be a very flexible/generic solution?
I don't think I know enough to give a complete answer if it needs to be latter, though depending on the number of installations what I have to say about the former might be helpful for the latter.
I have also tried using the transfer methods available via AccuTerm's mv library (i.e. living on the DB server) to transfer non-simple-text files without any luck. I may be doing it wrong, but I've tried every option I could find. If someone knows the correct options to use, Kathleen and I are all ears :-) !
If it's the former (or a small number of installations), then you can approach it either way discussed, but there can be difficulties to overcome. If you have a different user on each box (i.e. you're not using a single-sign-on), this can be a hang-up. Further, if you're trying to transfer using native Windows commands, then you might need to deal with Windows renaming the files in the mounted/mapped Linux partition. If the Linux name is not valid in Windows, Windows will give it an essentially meaningless (except to Windows) name to keep track of it. If you're careful with your naming and permissions are not an issue, then you can use basically the same AccuTerm trick to execute the move from Windows. (Side-note: there are ftp clients you can run from Windows if you're not mounting/mapping the Linux partition on you PC.) To come from the Linux side, you need to mount a Windows drive so that Linux can see it (probably not one physically on your PC) and then you can use mv. Do a Google search; you can find any number of threads describing how to mount a Windows partition. (Second side-note: consider setting up file-sharing via Samba.) To move the file, you would need to EXECUTE the command on the DB server from within your program.
Finally, just to be clear, Will and I *were* trying to answer the question implicit in your subject. You stated "Not sure if this command is accuterm but..." We've just been trying to say that if you read the Accuterm user manual and do a search for STX you will see the different ways that Accuterm can interrupt itself to go out and do things on the PC where it's installed. In the case of opening a pdf, if you open a "Run" window on your PC and type in the full path C:\\Users\\kathleenh\\Downloads\\2022-Farm-Market-Application.pdf your PC knows what to do. Via the filetype stored in your registry it knows what is used to open .pdf files (probably Acrobat) and it launches that App handing it the document to open. That's exactly what Accuterm is triggering via the PRINT you described in your original post. What Will and I were trying to explain is that printing [ESC][STX]<[any command your PC can handle][CR] is just one of the ways you can interrupt Accuterm, and cause it to trigger something outside itself. We've just been trying to explain that you can find full descriptions of what you described in your original post, along with other behaviors, by searching the Accuterm user manual for STX. (Third side note: The only difference between [ESC][STX]< and [ESC][STX]> is whether or not Accuterm waits for the command to "finish" before resuming its processing.)
------------------------------
Tyrel Marak
Technical Support Manager
Aptron Corporation
Florham Park NJ US
------------------------------
I'm sure I knew that twenty years ago when I was writing Accuterm scripts
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
Thanks Tyrel, my brain could not wrap itself around the > versus < meaning "wait"
I'm sure I knew that twenty years ago when I was writing Accuterm scripts
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
I'm sure I knew that twenty years ago when I was writing Accuterm scripts
------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------
Yeah, if you put on your UNIX/LInux hat, that behavior wouldn't even enter your mind at all! More proof that sometimes you just need to read the documentation :-)
------------------------------
Tyrel Marak
Technical Support Manager
Aptron Corporation
Florham Park NJ US
------------------------------
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.