Search Results

Search: Posts Made By: thulasidharan2k
3,816
Posted By thulasidharan2k
Users who desire to have their .profile executed must explicitly do so in the crontab entry. Why?
The .profile file should be read when the user logs in. So, there should be no need to execute .profile file again in a cron job (since the cron job is run after the user logs in). Doesn't the cron...
10,035
Posted By thulasidharan2k
Does running a cron job of a user require the user to be logged in?
Suppose user 'asdf' is not logged into server 'bbbb', but the server is up. User 'asdf' has cron job. Will it be executed?
1,761
Posted By thulasidharan2k
Command substitution in echo
a=1
b1=unix
echo $b`$a`

The above code is not working. Instead of printing the variable b1 using 'echo $b1', how to use variable 'a' to print 'b1'
3,917
Posted By thulasidharan2k
Hi rn, Yes, the / before tail is a |. Please...
Hi rn,
Yes, the / before tail is a |. Please help!
3,917
Posted By thulasidharan2k
Command substitution in send/expect. Please help!
Hi, the following code is not working. How can I cat the last modified file in the path /asdf. Please help!
expect "asdf%" {send "cat `ls -rt /asdf|tail -1` \r"}
3,037
Posted By thulasidharan2k
What are the career options in unix apart from unix system administration?
What are the career options in unix apart from unix system administration?
5,496
Posted By thulasidharan2k
How does unix system administration, unix programming, unix network programming differ?
How does unix system administration, unix programming, unix network programming differ?
Please help.
10,666
Posted By thulasidharan2k
MIME - HTML mail with Excel attachment - Please help!
#!/bin/ksh
(
echo "MIME-Version: 1.0"
echo "Content-Type: multipart/mixed; boundary=frontier"
echo "--frontier"
echo "Content-Type: text/html"
echo "Content-Disposition: inline"
echo "\n"...
9,499
Posted By thulasidharan2k
Problem in sending inline html with an attachment using sendmail
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=border
--border
Content-Type: text/html
Content-Disposition: inline
<html><body><h2>This text should be displayed with html...
9,623
Posted By thulasidharan2k
Unable to send mail with inline html along with attachment. Please help!
The below code is not working. I am able to send only inline html or only attachment. When trying to do both, only inline html is sent without attachment. Please help!
#!/bin/ksh
(echo "Subject:...
1,025
Posted By thulasidharan2k
Long line displayed as multiple lines in Outlook. Please help!
When a file generated by a shell script is sent as a mail (not an attachment), in MS Outlook, single lines of the file are displayed as two/three lines (as the lines are long). Is there a way to make...
1,473
Posted By thulasidharan2k
Long line displayed as multiple lines in Outlook. Please help!
When a file generated by a shell script is sent as a mail (not as an attachment), in MS Outlook, single lines of the file are displayed as two/three lines (as the lines are long). Is there a way to...
3,030
Posted By thulasidharan2k
Automatic variable assignment inside a for loop
cs1=`echo "scale=8;($css1/$css0)*100"|bc`
cs2=`echo "scale=8;($css2/$css0)*100"|bc`
cs3=`echo "scale=8;($css3/$css0)*100"|bc`
cs4=`echo "scale=8;($css4/$css0)*100"|bc`
cs5=`echo...
3,215
Posted By thulasidharan2k
Hi Corona688, instead of using the following code...
Hi Corona688, instead of using the following code to assign variables cs3, cs4, cs5, cs6, cs7, cs8 and cs9, I used the for loop mentioned in the thread. But, the for loop is not working. Please help....
3,215
Posted By thulasidharan2k
Hi Corona688, I have K-Shell.
Hi Corona688, I have K-Shell.
3,215
Posted By thulasidharan2k
Need help in assigning output of n commands to n variables automatically inside a for loop
Please help me to automatically assign the output of awk command to the variables cs3, cs4, cs5 and cs6 using a for loop. The below code is not working.


for i in 3 4 5 6
do
cs$i=`awk...
35,418
Posted By thulasidharan2k
Hi All, Thanks for your quick suggestions....
Hi All,

Thanks for your quick suggestions. The below codes are working...

for i in 2 3 4 5 6; do awk -F"|" 'BEGIN{sum=0}{sum=sum+$'$i'}END{printf("%d\n", sum)}' css.txt; done
or
for i in 2 3...
35,418
Posted By thulasidharan2k
AWK inside For loop
Hi,

awk -F"|" 'BEGIN{sum=0}{sum+=$2}END{printf("%d\n", sum)}' css.txt
awk -F"|" 'BEGIN{sum=0}{sum+=$3}END{printf("%d\n", sum)}' css.txt
awk -F"|" 'BEGIN{sum=0}{sum+=$4}END{printf("%d\n",...
Showing results 1 to 18 of 18

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