Search Results

Search: Posts Made By: ATWC
1,033
Posted By ATWC
Cut a word between two strings and repeat the same in the entire file
in the below data i need to search for the word typeMismatch and then traverse back to find the filename of that particular mismatch. Like this we have to get all the file names which has error in...
9,222
Posted By ATWC
after changing the double quote(") to single it...
after changing the double quote(") to single it did work out.
But the image is not getting displayed and only X is coming. i am using outlook to view the email.
9,222
Posted By ATWC
function email_tt() { echo...
function email_tt()
{
echo "To:"abc@dom.com>$email_file

echo "Subject: Test " >>$email_file

echo "Content-type: text/html">>$email_file

echo "<head>
<meta http-equiv=""Content-Type""...
9,222
Posted By ATWC
Embed image to the html script
hi,

trying to embed an image to the html file to send out as an email.

img src="data:image/jpeg;base64,$(base64 /home/test/abc.jpg


but getting error as file not found after it aplies...
1,631
Posted By ATWC
sqlplus.sh --------- sqlplus -s ...
sqlplus.sh
---------

sqlplus -s usert/password@host <<-EOF>> error.txt
SET LINESIZE 1000
select '$name', TO_CHAR(current_timestamp(0),'DD-Mon-YYYY HH24:MI:SS') as start_time from dual;...
1,631
Posted By ATWC
Run only 3 sqlplus session at a time
Below code runs n number of session at a time when called. I want to restrict it to run only for 3 sqlplus at a time. Is there a way to do the same.
for name in `cat abc.txt`
do
(sqlplus -s ...
1,134
Posted By ATWC
i added wait, and it did work properly. Thanks...
i added wait, and it did work properly. Thanks for the prompt reply.

Now i have new req., run only 3 sqlplus at a time. Is there a way we can restrict it in the for loop?
1,134
Posted By ATWC
Parallel execution of Oracle PROC in UNIX
Hi,

Trying to run the Oracle Proc in parallel, but not working.. below code runs each call of the procedure and its coming out of the loop before its completion and printing the last statement!...
1,254
Posted By ATWC
if one of the calls fail, how does the error...
if one of the calls fail, how does the error handling work? Also i have someother task which needs to be started after the above is completed. So how does WAIT condition work? bcz i need to get the...
1,254
Posted By ATWC
Parallel execution of Oracle procedure in UNIX
i have say x number of procedure to run, ie i have one procedure which accepts variable and i need that to run in parallel and capture the error code if in case if it fails through the unix.
...
2,938
Posted By ATWC
Delete 5 days older files from sftp
As one of our requirement was to connect to remote Linux server through SFTP connection and delete some files which are older than 7 days.

I used the below piece of code for that,

...
12,827
Posted By ATWC
Delete 5 days older files from sftp
As one of our requirement was to connect to remote Linux server through SFTP connection and delete some files which are older than 7 days.

I used the below piece of code for that,
...
1,440
Posted By ATWC
HTML not coming while sending using email
echo "$1" > test.txt
awk 'BEGIN{
FS="|"
print "MIME-Version: 1.0"
print "Content-Type: text/html"
print "Content-Disposition: inline"
print "<HTML>""<TABLE...
1,706
Posted By ATWC
Embedding JPEG image to the body file
hi,

I am trying to embed an image to the body of the email, but the image is not visible.

echo "<html>
<body>
<style>
body {background-color:blue}
</style>
...
5,024
Posted By ATWC
Case insensitive file name search and replace
I am trying to find case insensitive file names and then replace that particular file with other name.


if [ -f `find -iname *update* -type f -printf "%f\n"` ]
then
ls | grep -i...
2,314
Posted By ATWC
uuencode "file name to long...200.pdf" "file name...
uuencode "file name to long...200.pdf" "file name to long...200.pdf" > test_UUENCODE.txt
combine=`cat Email_body.txt test_UUENCODE.txt > combined_.txt`
email_cmd=`mailx -s "test"...
2,314
Posted By ATWC
Uuencode & Mailx
hi,

i am trying to send a pdf attachment which has a name of 200 characters using uuencode and mailx. But the email is not getting delivered.


uuencode <filename.pdf> <filename.pdf> | mailx -s...
5,747
Posted By ATWC
hi xabbu, Can you please let me know the...
hi xabbu,

Can you please let me know the syntax for sendmail for the above mailx command.

Thanks
ATWC
5,747
Posted By ATWC
Mailx error code
hi,

i am using mailx command and i need to check if the email is send or not.

mailx -s "Sub A" -a "ACB SD.txt" abc@ab
if ( $? != 0 ) then;
echo "fail"
else
echo "pass"
fi

Everytime it...
30,205
Posted By ATWC
After changing the order in mailx it worked. ...
After changing the order in mailx it worked.
Thanks you
30,205
Posted By ATWC
Not working
DIR_TEMP=/home/projects/scripts
emal_sbjct_txt='ABC DEF'
Email_body.txt --> ABC
emal_id='xyz@abc.com'
dest_desc=/home/projects/txt
rpt_nm=ABC Data Extract.txt

cat "${DIR_TEMP}/Email_body.txt"...
30,205
Posted By ATWC
Mailx command to send attachment file
Hi,

I need to send a attachment which has space in the file name as: "ABC Data Extract.txt" which is present in the location /home/projects/txt

i am using

/home/projects/scripts
mailx -s...
2,064
Posted By ATWC
File existence check
hi
i wanted to check if the file exist or not(multiple files)

DIRE=/home/V478

if [ -f "${DIRE}"/abc.* ];
then
echo "file present"
else
echo "file not present"
fi

But i am getting the...
3,400
Posted By ATWC
a1,a2,"a,3,we",a4,a5,a6,a7,"a,8","","",a9,a10,a11,...
a1,a2,"a,3,we",a4,a5,a6,a7,"a,8","","",a9,a10,a11,"","",a12
b1,"b,2",b3,b4,b5,b6,"b,7",b8,"","",b9,"",b11,"","",b11
c1,"c,2","c,3",c4,c5,c6,c7,c8,"","","c,9",c10,c11,"","",c12


i want the to...
3,400
Posted By ATWC
need to replace comma only inside the " "(double...
need to replace comma only inside the " "(double qoutes)
sample file.

a1,a2,"a,3,12",a4,a5,a6,a7,"a,8","","",a9,a10,a11,"","",a12
b1,"b,2",b3,b4,b5,b6,"b,7",b8,"","",b9,"",b11,"","",b11...
Showing results 1 to 25 of 40

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