We just moved our unix server to Solaris. My VFP app routinely consumes text files from unix and we have an ascii command in our ftp scripts to make sure our windows server & my code receive properly cr/lf delimited text files. Now that we've moved to Solaris, however, this command is being ignored.
Can anyone explain what's up with this or how to fix it?
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On Thu, Nov 19, 2009 at 4:19 PM, Lew <lew1716@gmail.com> wrote:
> We just moved our unix server to Solaris. My VFP app routinely consumes text files from unix and we have an ascii command in our ftp scripts to make sure our windows server & my code receive properly cr/lf delimited text files. Now that we've moved to Solaris, however, this command is being ignored.
> Can anyone explain what's up with this or how to fix it?
Hi Lew,
I guess you know that on Unix the standard is LF only?
Could you not just STRTRAN() LF -> CR/LF or just ignore CRs?
--
Paul
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/17cad13c0911191005i3376631bmfbf3618550e15b7b@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Yes, Paul, that's my fallback routine. The files are quite large & strtran needs to be used in conjunction with a fopen / fread etc to make sure I'm dealing with reasonable chunks of data. Plus, the system is under pressure to finish quickly. Getting the ftp right from the get-go is faster & I'm hoping to get the terminator translation going again.
-----Original Message-----
From: Paul Hill <paulroberthill@gmail.com>
Date: Thu, 19 Nov 2009 18:05:59
To: <profoxtech@leafe.com>
Subject: Re: Ascii command in Solaris ftp script
On Thu, Nov 19, 2009 at 4:19 PM, Lew <lew1716@gmail.com> wrote:
> We just moved our unix server to Solaris. My VFP app routinely consumes text files from unix and we have an ascii command in our ftp scripts to make sure our windows server & my code receive properly cr/lf delimited text files. Now that we've moved to Solaris, however, this command is being ignored.
> Can anyone explain what's up with this or how to fix it?
Hi Lew,
I guess you know that on Unix the standard is LF only?
Could you not just STRTRAN() LF -> CR/LF or just ignore CRs?
--
Paul
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/17cad13c0911191005i3376631bmfbf3618550e15b7b@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Report [OT] Abuse: http://leafe.com/reportAbuse/17cad13c0911191005i3376631bmfbf3618550e15b7b@mail.gmail.com
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
...and, also, if the text file is row/col, sdf type organized data & the only thing you're doing is sucking it into a table via append from ... type sdf, VFP won't care whether it's lf only or crlf. They both work the same.
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On Thu, Nov 19, 2009 at 11:19 AM, Lew <lew1716@gmail.com> wrote:
> We just moved our unix server to Solaris. My VFP app routinely consumes text files from unix and we have an ascii command in our ftp scripts to make sure our windows server & my code receive properly cr/lf delimited text files. Now that we've moved to Solaris, however, this command is being ignored.
> Can anyone explain what's up with this or how to fix it?
Sure. UNIXes are not all the same. They have different commands and
dialects. Solaris is one of the West Coast varients (AT&T et al being
the East Coast flavors) and they probably use the command 'unix2dos'
instead of the Linux/AT&T Unix 'ascii' command.
If you can log onto the Solaris box and get a command prompt (they
call it a 'shell'), try typing:
man ascii
and
man unix2dos
and see what you get for results.
--
Ted Roche
Ted Roche & Associates, LLC
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/c9415b010911191218l4e7f686akcd00e398e4b10b40@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Thanks, Ted. That earned us a kudo. My manager states the he now
believes FoxPro programmers to be half intelligent.
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/df439c9a0911200452o26d6ae0du55b589aee2a36d48@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
On Fri, Nov 20, 2009 at 7:52 AM, Lew Schwartz <lew1716@gmail.com> wrote:
> Thanks, Ted. That earned us a kudo. My manager states the he now
> believes FoxPro programmers to be half intelligent.
Well, you tell him he's half-right. And we feel the same way about managers :)
--
Ted Roche
Ted Roche & Associates, LLC
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/c9415b010911200607x382b4a0fs30ecb5e8497010c8@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
"Well played," he says.
-----Original Message-----
From: Ted Roche <tedroche@gmail.com>
Date: Fri, 20 Nov 2009 09:07:20
To: <profoxtech@leafe.com>
Cc: <profoxtech@leafe.com>
Subject: Re: Ascii command in Solaris ftp script
On Fri, Nov 20, 2009 at 7:52 AM, Lew Schwartz <lew1716@gmail.com> wrote:
> Thanks, Ted. That earned us a kudo. My manager states the he now
> believes FoxPro programmers to be half intelligent.
Well, you tell him he's half-right. And we feel the same way about managers :)
--
Ted Roche
Ted Roche & Associates, LLC
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/c9415b010911200607x382b4a0fs30ecb5e8497010c8@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Report [OT] Abuse: http://leafe.com/reportAbuse/c9415b010911200607x382b4a0fs30ecb5e8497010c8@mail.gmail.com
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.