Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sasuser2006

    Perl Script Rebooting OS

    I am running a perl script on a brand new linux box and I've executed it three times and all three times the OS has rebooted mid way through the script. I've ran the script successfully on a 10 record file and it works but the file I need to run it on is 192MM records and 1109 bytes long...
  2. sasuser2006

    Excel Sort Macro

    I'm looking for an Excel macro that will sort a column and bring the duplicates to the top. For example... Worksheet before macro... ID 1 1 1 4 2 3 5 4 3 5 Worksheet after macro... ID Count of ID 1 3 1 3 1 3 3 2 3 2 4 2 4 2 5 2 5 2 2 1 The sort will float the IDs with the most...
  3. sasuser2006

    Newbie Needs Windows Application Development Recommendation

    I have experiance writing base SAS and Perl in a linux environment but I'm looking to expand my knowledge into something different. I want to learn how to create windows applications and with so many OOP languanges out there I'm not really sure which to start with...C++, C#, Visual Basic, Ruby...
  4. sasuser2006

    Loop Help!!!

    I'm trying to create a perl script that creates a sql script to load a table to a database based on a CSV file that's passed to perl and I'm having a problem. Currently the piece of the code says: ... open (CSV_FILE, "$csv_file") or die "Can't open $csv_file: $!"; open (SQL_FILE...
  5. sasuser2006

    ftp problem

    I'm trying to log into an ftp server to monitor for a file but when I do an ftp->ls it's not returning anything. Any help would be much appreciated. #!/usr/bin/perl use Net::FTP; my $now = localtime; my $report_path = "/u01/home/ftp.log"; my $path = "path"; my $ftpdest = "host"; my $ftpuser...
  6. sasuser2006

    pgp in perl

    I'm running this script to encrypt in perl on a linux box... #!/usr/bin/perl my $key = "PGP_KEY"; my $file = $ARGV[0]; $cmd = "sudo -u gpg /usr/bin/gpg --homedir=/u01/home/mydir/.gnupg --no-tty --encrypt --recipient \"$key\" < $file > $file. gpg "; $res = system("$cmd"); if($res) {...
  7. sasuser2006

    pgp on linux box

    Hey all, I'm running this command on a linux box... sudo -u gpg /usr/bin/gpg --homedir= /u01/home/mydir/.gnupg/ --no-tty --encrypt --recipient "RECIPIENT_KEY" < test.txt > test.txt.gpg where RECIPIENT_KEY is the key referenced on import I get this error... sudo: no passwd entry for gpg! Is...
  8. sasuser2006

    load a pgp/gpg key to a linux server

    Hey everybody...sorry for the dumb question but I need to know how to load a pgp/gpg key to a linux server that has gpg installed. Is there a specific directory that i paste the key into...i.e.../var/, /usr/, /bin/, etc. Any help would be great and thanks in advance. Have a great day.
  9. sasuser2006

    Grep contents of fileA in fileB

    Guys, sorry if this is a dumb question but I'm looking to write a Perl script that will search the contents of fileA to see if the contents of fileB are in there. If they are in there write records out that match to file and the records that aren't to another file. fileA is fixed and I'm...
  10. sasuser2006

    dumb unix question...sorry ahead of time

    I am wanting to grep the contents of fileA in fileB...so if anything in fileB exist in fileA i want to write it out to fileC but i can't remember how to grep a file instead of a string. I know this isn't right but i can't get it to work anyway... grep fileA fileB > fileC or grep fileA <...
  11. sasuser2006

    grep a big file

    I've got a large file that I want to bounce against another large file to see which records exist on both file. Only problem is one of the files is over a half billion and the other is 200 million. I'm worried about using a grep command and exhausting the memory on the server. Does anybody...
  12. sasuser2006

    random help

    I am needing help randomizing a data set in SAS. What i want to do is read in a data set and if you meet a certain criteria, select a random sample to put in one bucket and put the rest in another bucket. Say 100 records have x > 10, i want a random 60 put in one data set and the rest put in...

Part and Inventory Search

Back
Top