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

    Arrays and hashes.

    I'm guessing I would build the hash table such that: fruit is the key and the value would be array1 animal the key and value would be array2
  2. EchoCola

    Arrays and hashes.

    Hello, I'd like to do something but im not quite sure how. I think i might need to use a hash table. Suppose I have a couple arrays @array1 = ("apple","orange","grape"); @array2 = ("dogs","cats","birds"); I would like to be able to search for example "apple" and get a key value of "fruit"...
  3. EchoCola

    How do I get the URL the webbrowser is currently viewing?

    How do I get the URL address a webbrowser is currently viewing?
  4. EchoCola

    automating sudo

    Annihilannic, Thanks for your response. I will look into that option. Unfortunately we are using a custom written version the sudo command. Why? I don't know. I have to use the " - root" because for this command, I need to specify the user. I will look into that man file.
  5. EchoCola

    automating sudo

    I'm trying to create a here document to automate the sudo command. Anyone have any experience with this? This is what I have but it's not working, it still prompts for password: !/usr/bin/ksh sudo - root pkgadd <<HereDoc password HereDoc I found this: http://empty.sourceforge.net/...
  6. EchoCola

    NET USER, and windows GUI representation

    Is everyone stumped ? :/
  7. EchoCola

    NET USER, and windows GUI representation

    Im issuing the command by PERL script: net user $id Password1 /add /usercomment:"$phone_num $user_email" /comment:"$user_comment" /passwordchg:no /fullname:"$full_name" /expires:never This works fine. However, when I look on the active directory(under Administrative Tools), it puts the id...
  8. EchoCola

    reading contents of subfolders and deleting based on timestamp

    PS: I would rather not have code!! Just ideas! :)
  9. EchoCola

    reading contents of subfolders and deleting based on timestamp

    I just wanted to get some tips as how to get the time stamp, this is on a windows environment but I'm able to execute some unix commands thanks to the MKS kit. Anywho, here is my code tell me what I'm doing wrong! :) #This script searches the folders in the current #directory, if it empty it...
  10. EchoCola

    CGI error

    Hey guys, I'm getting an error on this CGI script, I can't seem to find it. here is the html and the script <form name="form1" method="post" action="reviews.cgi"> <p align="center"><b><font color="#5E00BB" size="6">&nbsp;&nbsp;&nbsp;&nbsp;</font><font size="6"><span class="style5">Rate -A-...
  11. EchoCola

    Net::SMTP

    It worked, just had to close STDERR. Thanks for the idea
  12. EchoCola

    Open (Dir...)

    use a test directory on your local machine... something like $Path = 'C:\\' and see if that works first then move on to the other network drives
  13. EchoCola

    Open (Dir...)

    Try something like this chdir($Path) || die "Cannot change directory to $Path: $!"; opendir(directory,".") || die "Cannot open the directory . (Directory may not exist): $!"; $i = 0; foreach $file ( readdir(directory)) { @files[$i] = "$file\n"; $i++; } closedir(directory);
  14. EchoCola

    Net::SMTP

    Hello, I just wanted to know if there was a way to disable the displaying of the transcation when I execute an SMTP session using NET:SMTP module. I tried to turn the debug option to 0, but doesn't really do much, also tried to look for print statement within the .pm but didn't see anything that...
  15. EchoCola

    split by '\'

    Nevermind,the problem was with the quotes its supposed to be split(/\\/,$str); NOT split("/\\/",$str);
  16. EchoCola

    split by '\'

    Hello all im trying to split a path with no luck $str = 'C:\one\two\three'; @ray = split("/\\/",$str); print"\n Here is the contents of \@ray: @ray[1]\n"; After this executes it doesn't perfrom the join and it's all put in the first value of the array.
  17. EchoCola

    Parsing text file with split()

    Ahh yes thanks paul!
  18. EchoCola

    Parsing text file with split()

    ok i got that working, by doing the following chomp(@to,@cc); @recipients = (@to,@cc); @recipients = join ("",@recipients); $recipients = @recipients[0]; @recipients = split (",",$recipients); $recipients = join ("','",@recipients); The only thing is with this i get the following output...
  19. EchoCola

    Parsing text file with split()

    I have an array that contains the following : paul@compaq.com,thirteen@email.net,fourteen@email.net,fifteen@email.net, What I wanted to do was to put single quotes around each email, still seperated by the commas. Basically I want it to look like...
  20. EchoCola

    Parsing text file with split()

    Is there a character I can put preceding a line of text so that it will skip that line? kind of like a comment

Part and Inventory Search

Back
Top