Index
2009-11-19 11:19 – Lew : Ascii command in Solaris ftp script
2009-11-19 13:05 – Paul Hill : Re: Ascii command in Solaris ftp script
2009-11-19 14:07 – Lew : Re: Ascii command in Solaris ftp script
2009-11-19 14:31 – Lew : Re: Ascii command in Solaris ftp script
2009-11-19 15:18 – Ted Roche : Re: Ascii command in Solaris ftp script
2009-11-20 07:52 – Lew Schwartz : Re: Ascii command in Solaris ftp script
2009-11-20 09:07 – Ted Roche : Re: Ascii command in Solaris ftp script
2009-11-20 09:51 – Lew : Re: Ascii command in Solaris ftp script
Back to top
Ascii command in Solaris ftp script

Author: Lew

Posted: 2009-11-19 11:19:00   Link

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

This message: http://leafe.com/archives/byMID/profox/2087339633-1258647436-cardhu_decombobulator_blackberry.rim.net-1146642589-@bda355.bisx.prod.on.blackberry

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

©2009 Lew
Back to top
Re: Ascii command in Solaris ftp script

Author: Paul Hill

Posted: 2009-11-19 13:05:59   Link

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.

©2009 Paul Hill
Back to top
Re: Ascii command in Solaris ftp script

Author: Lew

Posted: 2009-11-19 14:07:43   Link

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

This message: http://leafe.com/archives/byMID/profox/499367916-1258657560-cardhu_decombobulator_blackberry.rim.net-1029042864-@bda355.bisx.prod.on.blackberry

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

©2009 Lew
Back to top
Re: Ascii command in Solaris ftp script

Author: Lew

Posted: 2009-11-19 14:31:12   Link

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

This message: http://leafe.com/archives/byMID/profox/1264004793-1258658968-cardhu_decombobulator_blackberry.rim.net-1193116202-@bda355.bisx.prod.on.blackberry

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

©2009 Lew
Back to top
Re: Ascii command in Solaris ftp script

Author: Ted Roche

Posted: 2009-11-19 15:18:22   Link

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

http://www.tedroche.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

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.

©2009 Ted Roche
Back to top
Re: Ascii command in Solaris ftp script

Author: Lew Schwartz

Posted: 2009-11-20 07:52:51   Link

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.

©2009 Lew Schwartz
Back to top
Re: Ascii command in Solaris ftp script

Author: Ted Roche

Posted: 2009-11-20 09:07:20   Link

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

http://www.tedroche.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

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.

©2009 Ted Roche
Back to top
Re: Ascii command in Solaris ftp script

Author: Lew

Posted: 2009-11-20 09:51:53   Link

"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

http://www.tedroche.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

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

This message: http://leafe.com/archives/byMID/profox/571072340-1258728608-cardhu_decombobulator_blackberry.rim.net-99644142-@bda355.bisx.prod.on.blackberry

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

©2009 Lew