Search Results

Search: Posts Made By: Vrgurav
10,954
Posted By Vrgurav
How to search and replace text in same file
script is as below

v_process_run=5
typeset -i p_cnt=0
pdata=/home/proc_data.log

while [ $p_cnt -le $v_process_run ]
do
# execute script in background

dummy_test.sh...
50,770
Posted By Vrgurav
ftp_transfer() { cd /data/emp_dir ...
ftp_transfer()
{
cd /data/emp_dir
time ftp -niv 192.0.0.99 << EOF
user dummy dummy
cd in/rec
ascii
mget $1*.txt
ls -l
quit
EOF


# all emp*.txt files will be...
48,041
Posted By Vrgurav
How to get the location of word in a string
How to use instr function in awk ?
to get the location


a) for example instr('productiondata_12','data',1) to get the location of data using awk.

b) for example...
2,449
Posted By Vrgurav
error while sending mails through MKS
#!/bin/ksh

email0="dummy@company.com"

emails()
{

# mail Generation

echo "Hi" | /mapimail -s "-(Test Mail)From Production- `date`" $email0;

}


emails


i receive the...
9,034
Posted By Vrgurav
FTP process
#!/bin/ksh

dir=/dummy
v_data=emp


# 192.0.0.99 is ftp server IP address
# log file will be created as emp.log


# mget to get the files from ftp server
# mdel to delete files from ftp...
2,087
Posted By Vrgurav
Need year to display from ftped files list
Hi All,


p_ftp=dummy

time ftp -niv 192.0.0.2 << EOF
user dummy dummy
cd prt/$p_ftp
ascii
ls -ltr
quit


output is

-rw-r--r-- 1 500 500 5137 Mar 04 11:21...
Showing results 1 to 6 of 6

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