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 Mike Lewis 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. sappleg

    Calling batch file global variables in Perl script

    Thanks. It worked :). Appreciate it.
  2. sappleg

    Calling batch file global variables in Perl script

    Hi Guys, I have a batch file containing the global variables that I am calling within the second batch file. Now, I want to call these global variables in Perl script instead of the second batch file. How to do that? Here's what I am doing (two steps): 1. I have a batch file called...
  3. sappleg

    Search, count the occurence, and write total of a string in text file

    Hi, I want to search for a string in a text file and print the summary of total count of how many of it exists in the file. For example, here my text in the file from which I want to count how many times 'Status: Updated' and 'Status: Created' occured each. Item UPC: 111, Desc: ALMOST...
  4. sappleg

    Converting multiline text to a single line seperated by commas

    Thanks max1x, I will try this and make changes wherever necessary.
  5. sappleg

    Converting multiline text to a single line seperated by commas

    Novice to Perl only.
  6. sappleg

    Converting multiline text to a single line seperated by commas

    Hi Guys, I am trying to convert a multiple lines into a single line within the text file I have. Currently, I have this in the txt file: Stores Updated: 626 Stores Created: 0 STATUS:09/01/2009:PASS I want the output in the same file as (in a single line) Stores Updated: 626, Stores Created...
  7. sappleg

    SQL Server 2005 couldn't connect to the server

    Hi experts, I have just installed SQL Server 2005 on my xp home (standalone)_machine. However, when I try to connect it to the server, it couldn't do so. I am entering '(Local)' when it prompts for server name in the dialogue box. So, what am I doing wrong? Thanks in advance.
  8. sappleg

    ftp file transfer

    Hi Feherke, It worked and redirected output properly. I changed the pipe symbol from 'open FTP, "| $command' to 'open ftp, "$command |'. It now works the way I wanted it to be. Thanks a gazillion for your help.
  9. sappleg

    ftp file transfer

    Thanks Feherke. This does seem to work. However, I am not able to get the ftp commands output(success/failure) to the log file, except only the commands that I am issuing from the ftp file.
  10. sappleg

    ftp file transfer

    Thanks Feherke. I will try this.
  11. sappleg

    ftp file transfer

    Thanks Travs69. Unfortunately, I can't use NET::FTP. Is there anything wrong I could be doing in my above code, or is it the FTP site that has issues? Some days it succeeds to send all the files, but then the next day the same fails.
  12. sappleg

    ftp file transfer

    Hi Guys, I am trying to transfer file via. ftp using command line in my Perl script. However, for some reason after sending first file successfully, the connection gets lost. The log file (ftplog) shows the error as 'Not Connected'. $command=("ftp -n -i -s:to_ftp.ftp > $ftplog")...
  13. sappleg

    FTP error handling

    Thanks Guys, I will have a look at Net::FTP module. Thanks 'Cuvou.com' for your code. I am going to try this.
  14. sappleg

    FTP error handling

    Hi Guys, I am using the following ftp script in my Perl program. However, I want to track if the file has been successfully transfered or not. Is there any way to do this. I have browsed the net and this site exhaustively, but couldn't find any tips on this. Here's my small ftp script within...
  15. sappleg

    Find strings in a file and write to the same file

    Hi Guys, I have a question. Hope you could help. I currently have a txt file, containing three lines of text, e.g. Line_1. ABC Line_2. DEF Line_3. GHI I want to open this file, search for these three lines in the file and have a new line added to the bottom of the same file as: Line_sum...
  16. sappleg

    Data Manager SQL node - Error while Update

    Hi Guys, I am currently working with Data Manager and inserting an SQL node to the build. I have incorporated a very simple update statement in this sql node. However, when I do this in sql helper, it is giving me following error: UDA-SQL-0123: Insert/Update/Delete requests are not permitted...
  17. sappleg

    Count deleted files

    It worked. Thanks so much, Kevin. Sappleg
  18. sappleg

    Count deleted files

    Hi Guys, I am deleting 180 days old files from a directory. Now, I want the output that should count the number of files deleted. Here's my code: if (chdir($storage_ABC_Dir)) { foreach $FILES (<pabc*.*>) { if (-M "$storage_ABC_Dir/$FILES" > 180) {...
  19. sappleg

    Compare two files with same name in different directories

    Thank you guys. I was able to achieve this. It all looks good now. Appreciate all your help.
  20. sappleg

    Compare two files with same name in different directories

    Thank you for the information. However, what I want to do is to first compare two files in different directories. Here's the scenario. I receive one file, e.g. abc_20081112.dat through ftp which is placed in a directory 'd:\mydata\'. Then it is archived in another location 'd:\archived\'. So...

Part and Inventory Search

Back
Top