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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by flawless69

  1. flawless69

    Windows File Sharing Encryption

    Does anyone know if Windows encrypts the transmission between two Windows machines when files are transmitted? If so, what sort of encryption (DES, 3-DES, etc.)? --Derek "Fear not the storm for this is where we grow strong."
  2. flawless69

    ghost

    This is a bit off topic... Does anyone know if images created by Symantec Ghost Evaluation copy are still good after the 14 days if we upgrade Symantec to the full version? --Derek "Fear not the storm for this is where we grow strong."
  3. flawless69

    Servlets w/ other classes

    Ok here's some more info.... I decided to try something more simple. I created a regular class that contains an instance of the Vector class. I then had the servlet create an instance of the regular class and called a method that would return the Vector. The servlet then contained a vector...
  4. flawless69

    Servlets w/ other classes

    Well thing is, I think the Java is ok because it throws an exception after it gets into the instance of Class1 and gets to the point where the Vector that Class1 contains, is accessed. In this case, the first object contained in the Vector is not there. Class1 gets this vector from a method...
  5. flawless69

    Servlets w/ other classes

    Greetings all, I have a servlet class(Servlet1) which contains an instance of another non-servlet class(Class1) that contains instances of several other classes and contains a vector instance. Using a main method class that simulates the method call Servlet1 makes to Class1, I can get the...
  6. flawless69

    beginning problem

    OK, Got Tomcat installed, I can look Servlet examples from the webapps/examples/ directory that came with the install. I have created a new context and added a plain HTML page which calls a servlet. I can see the HTML page just fine, but when I click a button which has an action calling a...
  7. flawless69

    how to list filename?

    you can use backticks to send the names to an array and then print them: [code] @files = `ls`; foreach $file (@files) { print STDOUT "$file\n"; } --Derek "Fear not the storm for this is where we grow strong."
  8. flawless69

    Adding Foreign Keys

    Does this work? I've seen this page but it mentions something further down about it not actually doing anything. --Derek "Fear not the storm for this is where we grow strong."
  9. flawless69

    how to use perl to sort string?

    oops, get rid of the commas after OUT in the print statements. --Derek "Fear not the storm for this is where we grow strong."
  10. flawless69

    how to use perl to sort string?

    try this: open (IN, &quot;file.name&quot;) or die &quot;Can't open file.name: $!&quot;; open (OUT, &quot;>outfile.txt&quot;) or die &quot;Can't open outfile: $!&quot;; my %hash; while ($line = <IN>) { if ($line =~ /^[a-z0-9]+\s([0-9]+)\s[a-z0-9]+/) { $hash{$1}{line} = $line; }...
  11. flawless69

    Adding Foreign Keys

    Does anyone know how to add Foreign Keys after the tables have been created? --Derek &quot;Fear not the storm for this is where we grow strong.&quot;
  12. flawless69

    Loading text SQL files

    Is it possible to import a text file containing SQL statements into MySQL? I don't mean to import data, I just want to insert a ton of SQL statements I made with Perl. --Derek &quot;Fear not the storm for this is where we grow strong.&quot;
  13. flawless69

    adding specific line number to an array

    Using $file as the name of the file, open up a filehandle for each text file. Then you can loop through to the 32nd line and grab it. Then close the file and open the next one. Try this: foreach $file (@userff) { open (IN, $file) or die &quot;Can't open $file.&quot;; for ($i = 1; $i <=...
  14. flawless69

    Using perl sys command to launch perl scrip

    I notice two things, which may not be issues if they are just typos in your post: 1. You didn't include a space between the $base and the name of the script when you are concatanating in the $fnf assignment. 2. You didnt include the .pl extension in the name of your script. Like I said these...
  15. flawless69

    system command

    Don't use the backticks with the system call. Use one or the other. i.e. $var = system(&quot;cd $instdir; perl indexer.pl password=zipzip&quot;); or $var = `cd &quot;$instdir&quot;; perl indexer.pl password=zipzip`; the &quot;&quot; are needed because perl won't interpolate unless...

Part and Inventory Search

Back
Top