Search Results

Search: Posts Made By: Dip
2,717
Posted By Dip
Thank you very much Don Cragun and apmcd47 . I...
Thank you very much Don Cragun and apmcd47 . I made a mistake while testing the code. The code mentioned by Don Cragun is working perfectly.
Many thanks for your quick help.
2,717
Posted By Dip
Thanks for your suggestion @Don Cragun. ...
Thanks for your suggestion @Don Cragun.

Actually in my case always there are always some server.log file present with timestamp. So I would always like to check the if statement with timestamp. ...
2,717
Posted By Dip
Shell script file check throws [: too many arguments
While I am trying to check the filename/s in IF statement of a shell script (RedHat Linux 6) I am getting below error:

File check:

filename_time2=`date --date='yesterday' +%Y-%m-%d`
cd...
1,723
Posted By Dip
Many thanks...it works as desired...:b:
Many thanks...it works as desired...:b:
1,723
Posted By Dip
String extraction from log file
Hi,

Log file will contain text like below:

May 7 14:12:09 nap_fujitsu-nexus_pbb-denek-01-r_DE.de.ignite.net 108767: 115673: May 7 14:12:08: %RTT-3-IPSLATHRESHOLD: IP SLA Monitor(112):...
4,496
Posted By Dip
ANT: Telnet is not working
I am trying the below ANT telnet task:

<telnet userid="appldev" password="techm123" server="${BT_Server}">
<read>/u01/appldev/devappl/po/11.5.0/reports</read>
<!--write>cd...
4,493
Posted By Dip
Thanks for reply edstertec. Your one line script...
Thanks for reply edstertec. Your one line script is working fine. The variable name mistake was just a typo mistake. In actuall script it is fine. However 'm trying with my code but giving below...
4,493
Posted By Dip
Compiling n number of SQL files in loop
Trying to compile all SQL files using a shell script. But the below code is not working. Below Code works fine when for loop is not there(commenting line no: 1,2 and 9).


1. sq_lfile=`ls *.sql`...
10,449
Posted By Dip
Executing SQL file in UNIX
I have few .sql file at some location say /x/y/z. I want to execute those .sql files in UNIX server so that all packages,procedures can be applied on the database of the UNIX server.
2,747
Posted By Dip
Thanks radoulov....it's working fine
Thanks radoulov....it's working fine
2,747
Posted By Dip
File reading problem via shell script
Hi,

Data file named parameter contains :

DB=y
Alter_def.sql
Create_abc.sql

SQL=y
database.sql
my_data.sql

To read this file I use

var_sql=$(awk -F= '$1 == "SQL" { print $2 }'...
2,944
Posted By Dip
Counting string of a variable
Hi,

There is a variable f_name, it store some file names.
Value of f_name=a.sql b.sql c.sql.......
like this.

want to count how many file name the var f_name stores.
Without using loop is...
24,196
Posted By Dip
Thanks a lot palsevlohit....its working fine.
Thanks a lot palsevlohit....its working fine.
24,196
Posted By Dip
file reading through shell script
For reading a file through shell script I am using yhe code :

while read line
do
echo $line
done<data.txt

It reads all the line of that file data.txt.
Content of data.txt looks like:
...
18,873
Posted By Dip
Reading data from a file through shell script
There is one Text file data.txt.
Data within this file looks like:

a.sql
b.sql
c.sql
d.sql
.....
.....

want to write a shell script which will access these values within a loop, access...
2,187
Posted By Dip
Thanks a lot it's working fine.
Thanks a lot it's working fine.
2,187
Posted By Dip
Thanks for reply. I update your code by...
Thanks for reply.

I update your code by putting the file name data.txt.

var=$(awk -F='data.txt' $1 == "no of head" { print $2 })
if [[ -n "$var" ]]
then
echo found value $var
else
...
2,187
Posted By Dip
How to read from a file in unix
I have one file data.txt. This data.txt file contain "no of head=3" string.
From a shell script I want to check whether data.txt file contains "no of head" string or not, if yes then want to fetch...
2,889
Posted By Dip
thanks a lot ranjith, its working fine.
thanks a lot ranjith, its working fine.
2,889
Posted By Dip
How to track exit status of ftp automation
ftp automation code is

ftp -v -n -i $host_name << EOF
user $u_name $u_pass
bi
mput $tar_file
bye
EOF

How to check whether the file is successfully transfered or not. Suppose the user...
Showing results 1 to 20 of 20

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