Search Results

Search: Posts Made By: proghack
1,300
Posted By proghack
Sent output to email and empty folder at same time
Hi all,

i want to sent output to email and folder at same time. This is my code :

echo "Hello" | mailx -s "${SUBJECT}" "${email_add}" >> ${file}


I only can sent output to my email but...
1,054
Posted By proghack
Hi Chubler_XL, But if add another group inside...
Hi Chubler_XL,
But if add another group inside :

This code cannot support :

grep "^$class" | head -1

Assume that $class variable of either group1 or group2 or group3.
1,054
Posted By proghack
grep problem?
Hi all,
$class is a viable of group1.

While, in group1 got 2 type:


But when i use this code :

The output is :


But i want only group1_text.
3,602
Posted By proghack
Erm..can already i do mistake .Thx very much
Erm..can already i do mistake .Thx very much
3,602
Posted By proghack
Yup , i try both method....also same..only sent...
Yup , i try both method....also same..only sent to 1user....any nothing error come out.
3,602
Posted By proghack
I try liao....it only sent the email to 1 user...
I try liao....it only sent the email to 1 user only...
3,602
Posted By proghack
Hi I still cannot sent out the email to...
Hi
I still cannot sent out the email to multiple user . This is my man mailx

Send mode:
mailx [-FUm] [-s subject] [-r address] [-h number] address ...

Receive mode:
mailx -e...
3,602
Posted By proghack
hi Chubler_XL, I must done it without sent...
hi Chubler_XL,

I must done it without sent to cc.
3,602
Posted By proghack
Hi , I write in csh script. I have to set the...
Hi ,
I write in csh script. I have to set the email address as variable $email.

The script can run if my email variable output only 1 email address :


But if the email variable got 2 or more...
3,602
Posted By proghack
Hi , also cannot ..only sent to 1st email...
Hi ,
also cannot ..only sent to 1st email address. Other email not function.How?
3,602
Posted By proghack
Email sent to multiple user address?
hi all,
This is user that i want sent the email:

Email = allan@gmail.com bruce8899@gmail.com Chris@gmail.com



echo "$dir : $filecount is over the limit $limit " | mailx -s "${SUBJECT}"...
2,597
Posted By proghack
hi danmero, wht u mean by this part : set...
hi danmero,
wht u mean by this part :

set array = `tr \\\n \ < file

for this ksh code :

email=$(grep "^$1" $folder/config_2.txt | awk '{print $2'})

The output should be like this :
...
2,597
Posted By proghack
translate ksh code to csh code
hi all,
Can any 1 help me translate this korn shell code to C shell code :

email=$(grep "^$1" $folder/config_2.txt | awk '{print $2'})


In config_2.txt the content is :


which mean in...
2,453
Posted By proghack
I still cannot get what u mean
I still cannot get what u mean
2,453
Posted By proghack
Hi , wht this line mean ? echo "$i. line...
Hi ,
wht this line mean ?

echo "$i. line of '($1)' ->" ` cat "$1" | head -$i | tail -1`
2,317
Posted By proghack
hi rdcwayx, but ur 1 cannot run in my script....
hi rdcwayx,
but ur 1 cannot run in my script. I be compulsary to done in C shell script.
Ho i want replace this statement with awk :

while ( $lot1 && $lot2 <= $#line_array_2 )
...
2,317
Posted By proghack
hi rdcwayx, This code can use in C shell? ...
hi rdcwayx,
This code can use in C shell?

awk 'NR==FNR{a[$1]=$2;next} {if ($3 in a) print $0,a[$3]}' file2 file1$1 and $ 2 represent what variable?
2,317
Posted By proghack
Hi, this is not homework . I assign to done this...
Hi, this is not homework . I assign to done this task in my job. I only success loop the 1st file. Then i want loop 2nd file i fail .
This is the code i done until now:

#!/bin/csh

set app_dir...
26,140
Posted By proghack
hi polsum, Can i know ur this code write in...
hi polsum,
Can i know ur this code write in which shell script?

awk 'NR==FNR{a[$1]=$2;next}a[$4]{print $0"\t"a[$4]}' file2 file1


---------- Post updated at 10:33 AM ---------- Previous...
2,317
Posted By proghack
Comparing 2 file use c shell script
Hi all,
I got 2 file :

file1:
file2:
output:
But , must write out in C shell.Anybody can help solve?
1,297
Posted By proghack
Hi pravin, Actually my script is not run like...
Hi pravin,
Actually my script is not run like ur 1 mention.
I actually use while loop to assign the value as variable in my config_recipient file.
And now i got another file name folder. Actuallty...
1,297
Posted By proghack
erm..try alreay cannot run la...
erm..try alreay cannot run la...
1,297
Posted By proghack
Hi , i still cannot get wht u mean, ...
Hi ,
i still cannot get wht u mean,

foreach file (`cat $app_dir/config_recipient | awk {print $1,$2 } ` )
echo " $file "
end
The output for this code :
group1 email1...
2,453
Posted By proghack
ya..i know csh is harmful .But i be request to...
ya..i know csh is harmful .But i be request to write it in C shell. Can u help me ?
2,453
Posted By proghack
Actually that 1 is example. I write out scipt in...
Actually that 1 is example. I write out scipt in C shell.
But the teory same like up there.
It mean that i use 2 while loop to read 2 file at 1 time.
Showing results 1 to 25 of 40

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