Search Results

Search: Posts Made By: newoz
1,840
Posted By newoz
So if follow your explain, why read is not on...
So if follow your explain, why read is not on hold to wait the input?
1,840
Posted By newoz
Thanks, so after read command get EOF , what will...
Thanks, so after read command get EOF , what will happen then?

Will EOF tell the read command, the here-document is finished, no read from now on, why read still keep reading with "null" value.
1,840
Posted By newoz
read is not on hold
In end of https://www.unix.com/shell-programming-scripting/103227-while-read-loop-scope-variables-shell.html

mjd_tech gives script which can read some values directly without manually input, but if...
1,463
Posted By newoz
but why awk think that's 3 floating numbers, not...
but why awk think that's 3 floating numbers, not a string? Is the bug in it?
1,463
Posted By newoz
awk weird problem.
awk 'BEGIN{print 1.2.3.4}'

1.20.30.4

Can anyone explain why has extra "0" in the IP address?
4,088
Posted By newoz
My system is Solaris 10
My system is Solaris 10
4,088
Posted By newoz
Record all users' command
Hi experts,

.history can record one user's own command history, but my request is,

I want to record all users who run commands on that box, and export the commands to a file somewhere, which...
949
Posted By newoz
Ok, I fix it by myself. app="${app}...
Ok, I fix it by myself.

app="${app} $i"
949
Posted By newoz
Thanks Jim. I have to use:...
Thanks Jim.

I have to use: txt="abc001|abc002|abc003|abc004|xyz001|xyz002|cde004", because I need identify the application name in the same script. Please see my old post:
...
949
Posted By newoz
Calculate application "not run" status
My shell env is Ksh88 , I need export the "not-running" application name.

txt="abc001|abc002|abc003|abc004|xyz001|xyz002|cde004"

IFS=\|
app=""

for i in $txt
do
appstatus $i # the...
1,979
Posted By newoz
To get the Ctrl-V to work, you have to be in "vi"...
To get the Ctrl-V to work, you have to be in "vi" mode. To do that, at the prompt, type in:

$ set -o vi

That's an "o" (oh), not a zero.

Press the "Esc" key one time, then perform the...
1,979
Posted By newoz
I try to check the ksh version, but I don't know....
I try to check the ksh version, but I don't know.


$ ksh --help
$ exit


$ ksh -VER
-VER: bad option(s)

$ ksh -v
$

My system is solaris 10. Can you tell me how to check the ksh...
1,979
Posted By newoz
The second one works in my env. But my env...
The second one works in my env.

But my env has been set by txt="abc001 abc002 abc004" (split by space, not |)

Can you update from this?
1,979
Posted By newoz
Verify the input
I run the script with one parameter : myscript abc002

But I need my script to check the parameter in txt array first:

txt="abc001 abc002 abc004"

What's the best way to do it? I am using...
3,118
Posted By newoz
Thanks a lot. i will set the cronjob as your...
Thanks a lot. i will set the cronjob as your suggested.

But I need mail the detail job tasks (job 1, job 2,....) within mail to the person. How can I do that?
3,118
Posted By newoz
Cronjob to notify by mail
I am planning some tasks that I need send mails regularly to my team members. I think to use cronjob with script to do it.

Two init files are prepared, I can change the format if you ask for.
...
Showing results 1 to 16 of 16

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