Search Results

Search: Posts Made By: TinWalrus
Forum: AIX 04-20-2012
2,173
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,673
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...
13,891
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...
6,167
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...
6,167
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,411
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...
3,792
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,206
Posted By TinWalrus
egrep, mmmm
mypath=$(egrep -v '^(#|\/$)' file1.txt)

ksh -
omits any lines beginning with # or lines containing ONLY /
5,219
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...
1,825
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
1,819
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")
2,462
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
...
1,825
Posted By TinWalrus
expect
you could use expect

Expect - Expect - Home Page (http://expect.nist.gov/)
8,869
Posted By TinWalrus
using awk
awk '{if ( NR == 1 ){print 21,$0}else{print " " $0}}' name_of_file
Forum: Solaris 08-23-2008
2,796
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
4,400
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...
3,928
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...
6,690
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,277
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,071
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,510
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,122
Posted By TinWalrus
nice! i did not know you could do that ;)
nice! i did not know you could do that ;)
1,238
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,510
Posted By TinWalrus
gettydefs ... ;) just looked it up
gettydefs ... ;) just looked it up
3,510
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

 

Featured Tech Videos

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