Search Results

Search: Posts Made By: amit1_x
12,797
Posted By amit1_x
Passing variable and wild card character to grep in Perl
HI All,
I have a script that needs to find out a list of files in a directory, i pass the search parameter as an argument.

opendir ( DIR, $dir ) || die "Error in opening dir $dirname\n";...
1,296
Posted By amit1_x
Whats wrong with my Loop
Hi all,
I have been given a task to search for strings in a file that is encoded. I need to display the file name only when all the 3 strings which i provide are present in the file name.

i...
4,806
Posted By amit1_x
Here is the entire code use Win32::ODBC; ...
Here is the entire code


use Win32::ODBC;
use Time::Local;
use Getopt::Std;




my $cString = sprintf("Driver=SQL Server;Server=szrh721;Database=pagesSys_5701SR4;Trusted Connection=yes"); ...
4,806
Posted By amit1_x
I am executing it from my local machine and i...
I am executing it from my local machine and i have write access to the share where i spool the file, the file is created 0 byte so it rules out the permission issue
4,806
Posted By amit1_x
Perl- Output file is always 0 byte
Hi all,

I am new to perl programming. However i have a script that connects to the database and spools that into an output file.
Strange thing is that sometimes this script works and sometimes...
5,729
Posted By amit1_x
Perl - Search file between two time stamps
Hi,
I am on a windows system that receives files from differnet host, I have to find the count of files that we receive between specific time.
The code below is what i use to count the number of...
Forum: Red Hat 04-14-2009
6,883
Posted By amit1_x
Where is TERM variable set on linux machines ?
We have two machines, prod and uat. The TERM variable in both machines are different

prod
echo $TERM
vt100



UAT
echo $TERM
xterm


I have checked the .profile file and could not find...
5,372
Posted By amit1_x
i found it status=`eval "eval "echo "ssh -q...
i found it

status=`eval "eval "echo "ssh -q $Infa_user@$host 'csh -c $CMD '"""`

works fine.
5,372
Posted By amit1_x
Passing eval value to a variable
Hello,

I have a script that does an scp to a server and then gets the number of process running on that server, the o/P should be stored in a variable for further processing


eval `echo "ssh...
50,813
Posted By amit1_x
Works fine !! Many thanks...such a simple code :-)
Works fine !! Many thanks...such a simple code :-)
50,813
Posted By amit1_x
parsing xml using awk
hello ,

i am trying to parse xml using awk however its a little bit tricky as i want


<databases>
<source>
<host>prod</host>
...
2,492
Posted By amit1_x
How to perform sftp
I am trying to move some transfers from ftp to sftp and have successfully established the connectivity betweeen Unix and Windows host however i am not able to transfer the file .

i am trying
...
16,288
Posted By amit1_x
Great ! Works fine...Thanks a lot!!!
Great ! Works fine...Thanks a lot!!!
16,288
Posted By amit1_x
changing shell while using ssh
Hello,

I am trying to ssh to a remote machine then change the shell and execute the script. However the ssh session hangs when i try to change the shell


ssh user@host 'csh ; source...
3,808
Posted By amit1_x
awk using env variable as search argument
Hello,
I have a file like


was123##abcdefg abddef
was123##xuzaghg agdfgg
was133##CGHAKS DKGJG

from the file i need to print the line after ## where the serach value is passed by an env...
7,904
Posted By amit1_x
To replace string between two strings
how do i replace a string within two strings ?. i have a string called my_string i.e
my_string="GACAHX04GAC010000000001DDELTA 0001DAT00001320SLTZ"

i need to replace all characters between DAT...
11,089
Posted By amit1_x
Many Thanks ghostdog74 it works fine .
Many Thanks ghostdog74 it works fine .
11,089
Posted By amit1_x
Using Awk script to check length of a character
Hi All ,
I am trying to build a script using awk that checks columns of the înput file and displays message if the column length exceeds 35 char.

i have tried the below code but it does not work...
2,342
Posted By amit1_x
Need AWk To parse XML logs
Hi , I need an Awk script to parse my log file .

2008-04-26 10:00:13,391 [Delivery0] INFO Logger - <?xml version="1.0" encoding="UTF-8" standalone="no"?><2dm
tmsg...
Forum: Linux 04-28-2008
3,886
Posted By amit1_x
I figured it out echo -e "\033[01;31m ERROR ...
I figured it out
echo -e "\033[01;31m ERROR \033[m"
ERROR
tahnsk for the hint though!
Forum: Linux 04-28-2008
3,886
Posted By amit1_x
ESC sequence on RHEL5
We have migrated one of servers from RH 2.1 to RHEL5 , some of the scripts on our machine use escape sequence to print output . Om RH 2.1 we were using echo
echo "\033[01;31m ERROR \033[m" ...
1,305
Posted By amit1_x
Need an Awk script
Hi , I have been given some data after doing greps on Application log files which is

TAX_PROD_ARC_JAVA.log.20080424031428:Apr 24 00:11:37 2008: [242] Beginning Taxingfor rec TAX_1_2_3...
1,762
Posted By amit1_x
Is there a way to then compare such big numbers ?
Is there a way to then compare such big numbers ?
7,755
Posted By amit1_x
How does mutt command pick senders Details
Hi All,

We use mutt in one of our scripts to send files as a part of a batch job . The command works nicely but i want to know from where does mutt pick the sender details. As the sender id is...
1,467
Posted By amit1_x
Why does IF loop behave differently in different shells
Hi , I have a script that compares two string and prints the larger string , This is an extract of a biggers script that i have.


#! /bin/ksh
DT_STRING_CMP=20081221223440...
Showing results 1 to 25 of 29

 
All times are GMT -4. The time now is 03:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy