Search Results

Search: Posts Made By: cin2000
36,578
Posted By cin2000
ctrl -v -[
Thank you and you are great!!!
36,578
Posted By cin2000
insert escape charactor within VIM
Hi,
I need to send "^[" command to the buffer.
I tried to use insert within VIM and press 'ctrl' key and then '^' and '[' key.
but it didn't work.

Does anyone know how to do it?

Thanks a...
1,857
Posted By cin2000
ksh program
Hi,
I just found out that the ksh program would run sometimes correctly but not all the times for the some users.
Does this mean anything to anybody?

Thanks!
1,857
Posted By cin2000
ksh program run with different results by different users
Hi,
I wrote a ksh program on Unix.
One thing I don't understand: some users run it with different results.
I suspect it's either "cat" or "grep" command.

Basically, with one group of user, the...
19,100
Posted By cin2000
grep in ksh
It worked.
Thanks everybody!
3,036
Posted By cin2000
ksh grep
Well, I fixed my problem by only put on one quotation mark at each end like below:

/usr/bin/grep "$Mon $NewDD" /tmp/timemanager/intlog.$$ >> /tmp/timemanager/log.$$ 2>/dev/null


It does not...
3,036
Posted By cin2000
grep command in ksh
Hello?

Is it so strange that no one knows about it?
3,036
Posted By cin2000
grep within ksh program
Hi,
is there problem with grep command when using ksh?
I had the below command:
/usr/bin/grep \""$Mon $NewDD\"" /tmp/timemanager/intlog.$$ >> /tmp/timemanager/log.$$ 2>/dev/null

when I run...
19,100
Posted By cin2000
grep command with combined variables in Ksh
Hi,
I'd like to grep two variables that are seperated with one space in ksh.
var1="Feb"
var2="09"

I tried to grep "$var1 ""$var2" /usr/file

It turn into grep Feb 09 /usr/file when it runs.
...
9,475
Posted By cin2000
while loop in ksh
Thanks ScatterBrain!

It's working now.
9,475
Posted By cin2000
@(n|N)
I don't get any error message. But the program is not go inside the while loop.
By the way, I have another while loop within the first while loop.
I don't know if that matters or not.

So it...
9,475
Posted By cin2000
while do loop
Hi,
I would like to use while do done loop in my ksh program.
Can I use this "or" statement within while statement?

=================
/usr/ucb/echo "Are you happy about the result(Y/N)?"
read...
31,443
Posted By cin2000
if statement with two conditions
Hi,
I am trying to use && set up to match two conditions within ksh:
if [ $sysdte -eq $dte ] && [-s /tmp/timemanager/log.$$ ]
then
'''Do something
if


somehow, I keep getting error message...
7,364
Posted By cin2000
sudo V. password
Hi,
I kind of know about sudo command.
But I am looking for a fixed password for my program that could be hidden somewhere.

Can someone give me a hint about it?
7,364
Posted By cin2000
password in ksh
ok.
I'd like to know the more secure way to do it since I don't want to other people to see the password.

?
3,899
Posted By cin2000
ksh with bc command error
Hi,
I don't understand why the below code gave me error message:
worked: not found

I am using ksh program.

worked =`/usr/ucb/echo "scale=2; ($logend-$logstart)/3600" | bc`



Thank you...
7,364
Posted By cin2000
ksh program with password
Hi,
I am looking for a way to utilize password when the ksh program is launched.
What's the standard or best way to do it?

Thanks for your help!
6,037
Posted By cin2000
how to get rid of decimal point?
Hi,
I have input with decimal point ( 9.99 ) for hours variable hrs.
I need to change it to seconds.
Here is my code:
secs=`/usr/ucb/echo $hrs*3600 |bc`

But I don't want to see the decimal...
65,490
Posted By cin2000
printf command in ksh
Hi,
I am very confused with my printf command.
Somehow one variable can't line up with others...

newstart2 ="Mon Nov 11 01 00:00:00 2002"
printf "%-20s" $newstart2

Here is the output:
Mon...
3,325
Posted By cin2000
pick up last charactor from string
I am using ksh for this program.
But I'd also like to know if there is more than one way to do it.
Even maybe using awk, sed, perl....

Thanks a lot!
3,325
Posted By cin2000
how to pick out last charactor of a string?
Hi,
Does anyone know how many ways to pick out last charactor of a string?

Thanks!
25,643
Posted By cin2000
epoch convertion
I found the solution by using perl:

#!/usr/bin/perl
# date from time_t seconds since the start of epoch then.pl
use Time::Local;
$epoch = timelocal( 0,0,0,19,11,2005 );
print("$epoch\n");
25,643
Posted By cin2000
how to get epoch time from normal readible format?
Hi,
Thanks a lot for the help on epoch convertion.
I thought I know how to convert regular date format to epoch time...
But I don't...
I need to convert something like 093005(mmddyy) format to...
25,643
Posted By cin2000
date variable
vgersh99,
Is there anyway to modify your code to pass date as variable(120905)?
the format will be like mmddyy.
What does /^time/ mean here?


currentEpoch=$(/usr/bin/truss /usr/bin/date 2>&1 |...
25,643
Posted By cin2000
OS config
ok.
Here it is:
System Configuration: Sun Microsystems sun4u
Memory size: 512 Megabytes
Showing results 1 to 25 of 30

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