comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.perl.misc Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Problem directing BCP Error to Error file         


Author: Rajpreet
Date: Jan 16, 2008 03:20

Greetings,

I am trying to bcp in data to a table which is in different server.
Though the bcp in works fine but the error file is not being created
and rejected records are not being directyd to the error file. Query
looks like:

bcp ..test_b_plan_cp in /home/file_out.txt -c -t '|' -S *****-U
****** -P ******-I /home/bcp2db_sql.ini -e /home/bcp2db.error.

Can someone please help?

TIA.

Regards,
Rajpreet
1 Comment
  In perl 5.10, is $needle ~~ @haystack binary search?         


Author: ~greg
Date: Jan 16, 2008 00:42

thanks,
~greg
4 Comments
  FAQ 8.33 Is there a way to hide perl's command line from programs such as "ps"?         


Author: PerlFAQ Server
Date: Jan 16, 2008 00:03

This is an excerpt from the latest version perlfaq8.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

8.33: Is there a way to hide perl's command line from programs such as "ps"?

First of all note that if you're doing this for security reasons (to
avoid people seeing passwords, for example) then you should rewrite your
program so that critical information is never given as an argument.
Hiding the arguments won't make your program completely secure.

To actually alter the visible command line, you can assign to the
variable $0 as documented in perlvar. This won't work on all operating
systems, though. Daemon programs like sendmail place their state there,
as in:

$0 = "orcus [accepting connections]";

--------------------------------------------------------------------
Show full article (1.62Kb)
no comments