Search Results

Search: Posts Made By: sleepy_11
1,315
Posted By sleepy_11
Is it possible that X11 can be forwarded through a SSH tunnel
I communicate with the server via a ssh tunnel, configured via Putty.

Recently, I'm trying to forward the X11 through it, but it doesn't work.

Is there any one work this way?

Searched with...
1,431
Posted By sleepy_11
It does works!! Great thanks for your help.
It does works!! Great thanks for your help.
1,431
Posted By sleepy_11
Doesn't work this time. :( Tried to add this...
Doesn't work this time. :(

Tried to add this line to .vimrc, but seems some syntax error is report...
Maybe need to take a look at the vimrc syntax

Also, i would like to only change *.lib to...
1,431
Posted By sleepy_11
Thanks for your answer and it works. But the...
Thanks for your answer and it works.

But the sad thing is the "*.lib" files are some source file in a version control system and some extra code is not welcomed. :(

Is there a way I can add...
1,431
Posted By sleepy_11
Help with update vim file-syntax relationship?
There are some ksh files named as "*.lib" in my system. When I open them in VIM, vim syntax can't parse it correctly.

Is there a way that I can relate the *.lib with KSH syntax in VIM?

Due to...
1,399
Posted By sleepy_11
Thanks for it. But it seems "df <dir name>" not...
Thanks for it. But it seems "df <dir name>" not show the FS...i will check the other options.

---------- Post updated at 12:55 AM ---------- Previous update was at 12:55 AM ----------


...
1,399
Posted By sleepy_11
is there command to show the fs on a directory?
On Solaris, is there a command which can show the file system of a specific directory?

In a script, i need to figure out whether a directory or its parent directory is mounted as "NFS".

Is...
1,290
Posted By sleepy_11
Thanks for the answer. But it is not the...
Thanks for the answer.

But it is not the exact one i need, since in my case, the line number for first part, above the first blank line, maybe variable.

It would be great if there is a way to...
1,290
Posted By sleepy_11
how to use sed to get 2nd range?
Hi all,

Is there a way to use the sed command to get the second range?

For instance:

sample.dat:
-------------
11111
22222

33333

44444

-------------

using "sed -n...
1,370
Posted By sleepy_11
Chubler_XL, great thanks and your code will clear...
Chubler_XL, great thanks and your code will clear my issue.

Also, I still have question about my original issue. just can't explain it. Is there anyone can try it and give me some clue?
...
1,370
Posted By sleepy_11
rbatte1, thanks for your reply. I'm...
rbatte1,

thanks for your reply.

I'm working on Solaris10 system. Below are the full program, which i removed other un-related part:

#!/usr/bin/ksh
SCRIPT_NAME="myprogram.ksh"
SCRIPT_PID=$$...
1,370
Posted By sleepy_11
will child processes be created when executing "ps"?
Hi

I'm trying to write some code to confirm there is only one running instance in memory like below:

/usr/ucb/ps -auxww | egrep -v 'grep |vi |tail |more |cat ' | egrep ${SCRIPT_NAME} | egrep...
12,594
Posted By sleepy_11
Scttn, ahmad.diab, Great thanks for your...
Scttn, ahmad.diab,

Great thanks for your clear explanation...
12,594
Posted By sleepy_11
what does ${VARIABLE:-0} stand for?
Hi all,

During reading the code, i met such expressment in a KSH script. I can not figure out what does this mean and don't know how to search it in the web. Could you please check below snippet...
12,758
Posted By sleepy_11
Not quite get your point. I enabled the...
Not quite get your point.

I enabled the exp_internal and updated the line with:

expect -re "#|'$'"

The output is:
Last login: Mon Nov 9 13:21:06 from host1
Sun Microsystems Inc. SunOS...
12,758
Posted By sleepy_11
How can expect match the pattern "$", instead of take it as a wild card
I am writing a expect script. during the expect, i need check the out to see whether i logged in:

set password "1234"

spawn telnet host1
expect "login:"
send "guest\n"
expect "password:"...
7,207
Posted By sleepy_11
That's the part which confuses me... ...
That's the part which confuses me...

Manually ssh the server
$ ssh root@host1
Password:
Last login: Wed Sep 16 13:53:28 2009 from 10.1.102.13
Sun Microsystems Inc. SunOS 5.10 Generic January...
7,207
Posted By sleepy_11
it works here, thx rdcwayx.... but the issue...
it works here, thx rdcwayx....

but the issue which blocks me is still unsolved....which the script just wait "#" when i run it...

---------- Post updated at 09:44 PM ---------- Previous update...
7,207
Posted By sleepy_11
expect script hangs while waiting for the flag...
I am writing a script to check whether the root password is set to a special string on some solaris servers.

Normally, the manually ssh login session is as below:

$ ssh root@host1
Password: ...
2,090
Posted By sleepy_11
why sshd cost different memory in the same system
It is a little bit weird to me when i found this on a solaris 9 system with openssh package. Below is the result copied from "top" output:
PID USERNAME LWP PRI NICE SIZE RES STATE TIME ...
Forum: Solaris 07-28-2008
6,170
Posted By sleepy_11
thx, then they are must refer to the disk array...
thx, then they are must refer to the disk array tower.
Forum: Solaris 07-28-2008
6,170
Posted By sleepy_11
anyone can tell me what is /dev/dsk/c3t600A0B80002FA5F50000000000000000d0s0?
Hi all,
I just find some strange device (at least to me) on my Sun Blade server, CP3060, like below:
bash-3.00# cd /dev/dsk
bash-3.00# ls c3*
c3t600A0B80002FA5F50000000000000000d0s0 ...
8,958
Posted By sleepy_11
Jim dr and shamrock, great thx for your comments....
Jim dr and shamrock, great thx for your comments. besides telling me the root cause, you also show me the history. Learned a lot from you.
8,958
Posted By sleepy_11
"@" will clear the current line in terminal
I just found that the current command line will be cleared when trying to input the "@" sign to the terminal. I checked current alias, but found nothing.

Would you please provide some suggestion...
Forum: Programming 06-23-2008
6,106
Posted By sleepy_11
Thanks Murphy. Do you mean that the...
Thanks Murphy.
Do you mean that the old_procfs.h file raises the issue? Could you please present it a little more detail?

Sorry for responsing a little bit late
Showing results 1 to 25 of 48

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