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...
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...
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...
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.
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.
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.
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.
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")...
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...
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...
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...
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)
{...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.