Search Results

Search: Posts Made By: seafan
17,675
Posted By seafan
How to replace text with space in vi?
Hi,

In the vi editor, I could do a search and replace:

:%s/work/play/g

but how do I do this for a string/text with space? like if I want to replace all text of "come here" with...
31,033
Posted By seafan
that worked! THANKS! ---------- Post updated...
that worked! THANKS!

---------- Post updated at 01:15 PM ---------- Previous update was at 01:09 PM ----------




That works too! I'm not well versed in awk, do you mind to explain how...
31,033
Posted By seafan
How to format the output of df -h?
Hi,

I need to format the output of the command "df -h":

$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-lv01
271G 13G 245G 6% /
tmpfs 16G 0 16G 0% /dev/shm...
2,734
Posted By seafan
how to give the threads names
thanks for your reply, I got it working - there was an extra # I had earlier in the code when I was experimenting with it.

Is there any way to modify the code to give these threads names so they...
2,734
Posted By seafan
Thanks for your reply, I see I totally mistaken...
Thanks for your reply, I see I totally mistaken the c function for a unix command. I haven't looked at any C code for 20 some years hehe.

so I took out the first line and tried to compile, I...
2,734
Posted By seafan
pthread_create
Thanks for the tip. The following comes straight from the manual page, (except the first line) and it could not compile -

#!/bin/ksh

/* cc thisfile.c -lthread -lpthread */
#define...
2,734
Posted By seafan
How to start multiple threads in Solaris?
Hello,

In a unix Solaris environment, (for simulation) how to start multiple threads (as Light Weight Process, not background process)?

thanks,

J.
Forum: Solaris 04-15-2013
2,260
Posted By seafan
How to simulate light weight process (LWP)?
Hello,

We had a problem on a Solaris system (SunOS 5.10) that hit LWP limit and caused fork 11 error. Now we need to come up with a script to simulate and reproduce that scenario. What would be a...
1,443
Posted By seafan
Thanks for your replies, much appreciated!
Thanks for your replies, much appreciated!
1,443
Posted By seafan
Where to find accounts with su access?
Hi,

This is for some system audit - there are sulog files that recorded all su activities, we need to verify that all the user accounts in the log are supposed to have su capability. Is there...
9,211
Posted By seafan
Thanks, they worked!
Thanks, they worked!
9,211
Posted By seafan
awk -F works on Linux, but not on Solaris
Hello,

I found this command works on Linux:

$ echo `uptime` | awk -F "load average: " '{ print $2 }'
1.60, 1.53, 1.46

but got error on Solaris:

$ echo `uptime` | awk -F "load average: "...
Forum: Fedora 04-20-2011
32,090
Posted By seafan
the Linux release is: Red Hat Enterprise...
the Linux release is:

Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
Forum: Fedora 04-20-2011
32,090
Posted By seafan
what is distro?
what is distro?
Forum: Fedora 04-20-2011
32,090
Posted By seafan
I meant that I'll need to find out if autosys or...
I meant that I'll need to find out if autosys or control-M is running on BOTH of these platforms.
Forum: Fedora 04-20-2011
32,090
Posted By seafan
It's either Sun Solaris 5.10 or Linux 2.6.9: ...
It's either Sun Solaris 5.10 or Linux 2.6.9:

SunOS 5.10 Generic_141414-07 sun4us sparc FJSV,GPUZC-M
Linux 2.6.9-67.0.4.ELlargesmp #1 SMP x86_64
Forum: Fedora 04-20-2011
32,090
Posted By seafan
Not sure what you are asking here?
Not sure what you are asking here?
Forum: Fedora 04-20-2011
32,090
Posted By seafan
how to check if autosys or control-M is running?
Hi,

On a unix/linux server, how do I check if Autosys or Control-M (scheduler) is running? are there unique processes for these applications that I could do

ps -ef | grep ???

thanks,
...
5,678
Posted By seafan
thanks for clarifying that. so the question is...
thanks for clarifying that. so the question is back to, why am I getting a syntax error?
2,671
Posted By seafan
Both are working now, after I logged out and...
Both are working now, after I logged out and logged in again. Thank you all so much for helping. This was my first post on this site, you guys are great!


now I'm also curious, why that expr...
5,678
Posted By seafan
$ uname -a SunOS demccuatux02 5.10...
$ uname -a
SunOS demccuatux02 5.10 Generic_127127-11 sun4us sparc FJSV,GPUZC-M

$ ps -ef | grep $$
oracle 28321 28393 0 16:23:20 pts/1 0:00 -ksh
oracle 6138 28321 0 16:58:25 pts/1...
5,678
Posted By seafan
how to get index/postion of a string?
Hi,

I have a string like the following:

/db1/data/GLIDER/SYSTEM.dbf

need to find the postion where "SYSTEM.dbf" starts, so I tried:

LOCATION=/db1/data/GLIDER/SYSTEM.dbf

$ expr...
2,671
Posted By seafan
echo "${LOCATION%/*}" returns empty/null ...
echo "${LOCATION%/*}"
returns empty/null

---------- Post updated at 12:09 PM ---------- Previous update was at 11:44 AM ----------

this returns empty/null as well:

$ echo "$LOCATION" |...
2,671
Posted By seafan
Thanks for your quick reply. It looks that I...
Thanks for your quick reply. It looks that I don't have basedir in ksh:

$ basedir $LOC
ksh: basedir: not found

but I have basename:

LOC=/db1/data/CMSDEV/SYSTEM.dbf

$ print $(basename...
2,671
Posted By seafan
how to remove this substring?
Hello,

I need to remove a substring from a string in a ksh script, the string is like this:
LOCATION=+DATADG1/CMSPRD1/datafile/system.235.456721

or
LOCATION=/u03/oradata/CMSPRD/SYSTEM.dbf
...
Showing results 1 to 25 of 25

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