Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: sathyaonnuix
12,172
Posted By sathyaonnuix
@Crorona688 : Thanks for you quick response. Yes...
@Crorona688 : Thanks for you quick response. Yes I can very well add umask/chmod, I am wondering how the umask is getting set when cron runs. Which is feeding the permission inputs to the Cron.

...
12,172
Posted By sathyaonnuix
Cron and umask
Hi All,

Please help to understand what I am missing. The default umask as in /etc/profile is 022. The Script running in Cron creates file with umask 026. The default User shell is ksh and the...
7,682
Posted By sathyaonnuix
Check this link...
Check this link (http://www.cyberciti.biz/faq/linux-unix-set-tz-environment-variable/)
7,682
Posted By sathyaonnuix
Instead of EST, try CDT now $ n=$((1*24)) $...
Instead of EST, try CDT now
$ n=$((1*24))
$ TZ=CDT+${n} date +%F
7,682
Posted By sathyaonnuix
Print the output of date command
Print the output of date command
1,453
Posted By sathyaonnuix
1. If you are a root and you trying to hide the...
1. If you are a root and you trying to hide the password from other users, give 400 permission to that flat file.
2. If you have a DB available, create a table and store the password into it rather...
7,682
Posted By sathyaonnuix
$ n=$((1*24)) $ TZ=EST+${n} date +%F ...
$ n=$((1*24))
$ TZ=EST+${n} date +%F
2013-10-13
$ n=$((2*24))
$ TZ=EST+${n} date +%F
2013-10-12
3,471
Posted By sathyaonnuix
Let me try to help you. Step 1: Use try it...
Let me try to help you.

Step 1:
Use try it yourself editor (http://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro)
Write your html code and see whether you receive the desired output
...
730
Posted By sathyaonnuix
that explains better.. Thank you
that explains better.. Thank you
730
Posted By sathyaonnuix
Need your help in understanding this
Hi,

I found this in a script and I would like to know how this works

Code is here:

# var1=PART1_PART2
# var2=${var1##*_}
# echo $var2
PART2

I'm wondering how ##* makes the Shell to...
1,131
Posted By sathyaonnuix
While loop subshell problem
People,

Here is my code
while read ln
do
xyz=$(echo $ln/$val1*100-100|bc -l|xargs printf "%1.0f\n")
if [ "$xyz" -le -50 ] && [ "$xyz" -ne 0 ]; then
iam="YELLOW"
fi
done <<<...
2,189
Posted By sathyaonnuix
its works, thanks Franklin. can you explain how...
its works, thanks Franklin. can you explain how file file works in the code.
2,189
Posted By sathyaonnuix
@Franklin, Rather retrieving the entire...
@Franklin,

Rather retrieving the entire line, I just want to print the column1 with comma separated.

# awk -F, 'NR==FNR{if($3 > m){m=$3}next}$3==m' file file
XYZf,23,29,5
XYZz,23,29,5
...
2,189
Posted By sathyaonnuix
@pamu : can we change it to , might get the...
@pamu : can we change it to , might get the desired result. Let me know if its true.

---------- Post updated at 05:07 AM ---------- Previous update was at 05:06 AM ----------

thanks RudiC,...
2,189
Posted By sathyaonnuix
awk to find the max
Experts,
Here is my question.
I have got file like below

# cat file
XYZb,24,26,6
XYZc,24,26,6
XYZe,24,25,5
XYZf,23,29,5
XYZi,16,25,5
XYZj,24,26,7
XYZn,17,23,4
XYZz,23,29,5

Now, I...
969
Posted By sathyaonnuix
Hotkeys in Shell script
Experts,

I am currently writing a shell script to access the Multiple scripts in a Menu based format for the Users. Users will be accessing the scripts inside this via numbers.

Now I would...
1,848
Posted By sathyaonnuix
Hello Jotne, You cannot see any difference...
Hello Jotne,

You cannot see any difference in the wget response code. Though the Account is locked, the response code will be 200. And with respect to the Error, nothing has been thrown out. Only...
1,848
Posted By sathyaonnuix
Wget/curl credentials validation
Experts,

I login to a 3rd party and pull some valuable information with my credentials. I pass my credentials via --post-data in wget.

Now my Account is locked. I want my wget to alert that...
890
Posted By sathyaonnuix
echo "Content-type: text/html" > mail.html echo...
echo "Content-type: text/html" > mail.html
echo "FROM: Rocky<you@gmail.com>" >> mail.html
echo "TO: recepient@gmail.com" >> mail.html
echo "SUBJECT: Test mail" >> mail.html
cat file.html...
3,077
Posted By sathyaonnuix
Print 5th & 6th column $ awk 'NF<6 {getline...
Print 5th & 6th column

$ awk 'NF<6 {getline y; $0=$0 FS y} {print $5,$6}' file

# df -h | awk 'NF<6 {getline y; $0=$0 FS y} {print $5,$6}'
Use% Mounted
31% /usr/bin
31% /usr/lib
31% /
98%...
5,739
Posted By sathyaonnuix
# cat file <dbsharedpool...
# cat file
<dbsharedpool oa_var="s_dbsharedpool_size">300000000</dbsharedpool>
<ABCD>
</ABCD>
<EFGH>
</EFGH>

# sed '/<\/dbsharedpool>/ a\ <dbrollbacksegs...
1,552
Posted By sathyaonnuix
Corona688, thanks for your reposnse. I am not...
Corona688, thanks for your reposnse. I am not good at attaching txts with sendmail , also I am not looking for attachments, since the fellas using this alert will ignore if it comes in attachments :(...
1,552
Posted By sathyaonnuix
Thanks Jotne and can you help my main problem as...
Thanks Jotne and can you help my main problem as well.
1,552
Posted By sathyaonnuix
[Solved] Script is ignoring &nbsp;
Experts,

I am finding the split up of the Servers which uses the netstat on a specific port.

netstat -a | grep -w 9071 |grep ESTABLISHED | awk '{print $5}' | cut -d'.' -f1 | sort -n | uniq -c...
9,829
Posted By sathyaonnuix
WOW!! This works out, can you please...
WOW!!



This works out, can you please explain the code.
Showing results 1 to 25 of 129

 

Featured Tech Videos

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