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.
...my ftp script file (to_ftp.ftp) looks like this:
open ftp.to_ftp.com
user
abc
password
ascii
lcd d:\main\jobs\abc\data
cd IN
mput *.txt
dir *.txt
quit
The above only transfers one file and then shows 'Not Connected' as shown in the log file below:
ftp> Connected to ftp.to_ftp.com.
open...
...site exhaustively, but couldn't find any tips on this. Here's my small ftp script within perl:
open(FTP_PIPE,"|ftp -n -i 11.11.111.11");
print FTP_PIPE <<EOF;
user abcd efghijk
cd /dir1/dir2
binary
! dir
mput test*.txt
dir
EOF
close(FTP_PIPE);
Thanks for all your help/tips. Much appreciated.
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...
...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)
{
unlink("$storage_ABC_Dir/$FILES");
if...
...archive folder. I want to check the complete file name - word to word. The only catch is I can't compare the file with the wildcards, such as 'abc_*.dat', as it contains the datestamp. So, if the file 'abc_20081112.dat' has already been archived in 'd:\archived' then it should rename the same...
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.