Search Results

Search: Posts Made By: TinWalrus
Forum: AIX 04-20-2012
2,693
Posted By TinWalrus
pstat -a
i'm not sure if what you were referring to was the max number of requests or not. i know if you run 'pstat -a | grep aios' you can get a number of the running aio servers and verify against the...
Forum: Hardware 04-20-2012
1,982
Posted By TinWalrus
hardware diagram / database
Hi - we are looking for a (hopefully free/opensource) solution for diagramming our rack/hardware configuration. the rack solution seems easier to find than the hardware piece. i.e. on our IBM 770...
18,969
Posted By TinWalrus
not sure how paste would work with hundreds of...
not sure how paste would work with hundreds of files, but it will take a regular expression... i.e.

paste doc?.txt > combined.txt

will take all files doc?.txt files and paste them into...
7,426
Posted By TinWalrus
i think ftp works fine within a script, i use it...
i think ftp works fine within a script, i use it all the time (if scp is not available).

if you are going to use mput, you will also need to put 'prompt' in the ftp section to turn off prompting...
7,426
Posted By TinWalrus
something like this
#!/bin.ksh

function Init {
comd="put myfile yourfile"
}

function FTP {

typeset host=$1
typeset acct=$2
typeset pass=$3
typeset comd=$4

ftp -v -n -d<<!
open ${host}
user root...
Forum: Solaris 04-11-2009
6,984
Posted By TinWalrus
solaris differences
it sounds like you are going for a solaris job, i am not a big fan of solaris myself, but have been in need of some info on the subject...

you can download the o/s from suns site to play with if...
6,187
Posted By TinWalrus
looks like this has been answered
and very well i might add =)


https://www.unix.com/unix-dummies-questions-answers/10205-run-ksh-script-cgi.html
1,449
Posted By TinWalrus
egrep, mmmm
mypath=$(egrep -v '^(#|\/$)' file1.txt)

ksh -
omits any lines beginning with # or lines containing ONLY /
6,010
Posted By TinWalrus
unix windows interop
without knowing what the database and message content type you want to communicate...

if you are trying to access a windows database directly, you can use a client - i.e. mysql on unix to mysql on...
2,828
Posted By TinWalrus
this is very cool, i did not know you could do...
this is very cool, i did not know you could do this - i wish ksh had this functionality
2,531
Posted By TinWalrus
#!/usr/bin/perl sub myfunc() { ...
#!/usr/bin/perl

sub myfunc() {
my($a,$b) = @_;
print "a = '$a', b = '$b'\n"
};

$myvar = "myfunc";

&$myvar("one","two")
3,056
Posted By TinWalrus
replace the first field with a counter in awk
concat the files together, and replace the first field with a counter in awk, something like:


#!/usr/bin/ksh
for file in file1.txt file2.txt file3.txt;do
cat $file >> file.new
done
...
2,828
Posted By TinWalrus
expect
you could use expect

Expect - Expect - Home Page (http://expect.nist.gov/)
10,551
Posted By TinWalrus
using awk
awk '{if ( NR == 1 ){print 21,$0}else{print " " $0}}' name_of_file
Forum: Solaris 08-23-2008
3,421
Posted By TinWalrus
first guess would be an environment variable set...
first guess would be an environment variable set in your shell but not set at the time of cron entry execution- you can put a 2>/tmp/myscript.err at the end of the script in the cron line to pipe...
Forum: AIX 07-17-2008
4
5,237
Posted By TinWalrus
paging
i think the best way to do this is to have part of your paging on rootvg (memory*2) which is mirrored (or should be) then have an additional non-mirrored disk for additional paging space, even if it...
4,704
Posted By TinWalrus
Ifs
you can manipulate the IFS (internal field separator) - as an example - given that go.dat contains the lines with spaces

# create the array, without manipulating IFS, spaces will break the array...
7,594
Posted By TinWalrus
ls -lt | grep -v "$(date '+%b %d')" ...
ls -lt | grep -v "$(date '+%b %d')"

depending on the way ls -l date is displayed, may need to manipulate the date format ..

you can sort reverse by
ls -ltr | grep -v "$(date '+%b %d')"
2,622
Posted By TinWalrus
#!/bin/ksh # to consider: # validating the...
#!/bin/ksh

# to consider:
# validating the days variable (make sure it is a number, etc)
# validating the search variable (make sure it not null, etc)

echo "how many days \c"
read days...
2,657
Posted By TinWalrus
perl -wnl -e '/\bsomepattern1|somepattern2\b/i...
perl -wnl -e '/\bsomepattern1|somepattern2\b/i and print $&;'

=) is that what you wanted?
3,963
Posted By TinWalrus
could you please post the reason it is not...
could you please post the reason it is not working? that is the proper syntax - i created a script that touches a file, ran it as root and the file is owned by the user i set it to run as
4,808
Posted By TinWalrus
nice! i did not know you could do that ;)
nice! i did not know you could do that ;)
1,408
Posted By TinWalrus
just a suggestion, i don't know what version of...
just a suggestion, i don't know what version of unix you are running but there are some pretty handy performance monitors out there - i.e. on our AIX system i run nmon out to a file which i then use...
3,996
Posted By TinWalrus
gettydefs ... ;) just looked it up
gettydefs ... ;) just looked it up
3,996
Posted By TinWalrus
if memory serves, i think you can start with...
if memory serves, i think you can start with looking at the inittab settings (man inittab) and there is a place you can edit the terminal settings (but i do not remember what the config file is...
Showing results 1 to 25 of 40

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