Search Results

Search: Posts Made By: alexop
Forum: AIX 09-17-2008
9,036
Posted By alexop
I must disagree! The internet is a great...
I must disagree!

The internet is a great 'reference' tool, but it's hard to beat a good book if you want to orient yourself to a completely new topic. The career of the author and the reputation...
3,193
Posted By alexop
Thanks, Franklin52!
Cheers for that - worked a treat.

*note to self - learn awk properly*
3,193
Posted By alexop
Re-write first line of a file before printing
Morning All,

Quite a simple one this, I hope. What I want to do is to re-write the first line of a file before it's sent to print. The line will be blank initially, and I want to insert some...
1,865
Posted By alexop
oopss.... I've been a little stupid on this...
oopss....

I've been a little stupid on this one.

Thanks for your input Porter and Radoulov. Radoulov - I see what you're getting at there with all the quoting variables. Whilst it might be a...
1,865
Posted By alexop
I suppose at this point I should mention I'm...
I suppose at this point I should mention I'm using ksh on AIX
1,865
Posted By alexop
No, I guess it isn't needed. I just prefer...
No, I guess it isn't needed.

I just prefer to put it in when using directory paths in variables which I know are going to be used in such a way. That way you either end up with 'DIRECTORY/file',...
1,865
Posted By alexop
Strange one (likely something simple...)
Right folks... this is probably something simple that I'm missing as it's early, but can anyone tell me what's going on here:

The Script:

cougar:/usr/hxscripts>vi ~/test.ksh...
Forum: What is on Your Mind? 07-10-2007
18,045
Posted By alexop
The US is *terrible* for holidays, from what I've...
The US is *terrible* for holidays, from what I've gathered. Here in the UK I would guess 22 days are the average. I'm on 22 and I get the option to buy 2 more day's holiday, which I always take. ...
Forum: AIX 07-10-2007
6,493
Posted By alexop
AIX 5.2: AIX unx000a0 2 5 0032728A4C00
AIX 5.2:
AIX unx000a0 2 5 0032728A4C00
Forum: AIX 07-10-2007
6,493
Posted By alexop
Also - $ file /usr/bin/kill /usr/bin/kill:...
Also -
$ file /usr/bin/kill
/usr/bin/kill: executable (RISC System/6000) or object module

so it's not a wrapper script that's doing any sudoing or suchlike...
Forum: AIX 07-10-2007
6,493
Posted By alexop
Perderabo, Sorry, but I don't think that's...
Perderabo,

Sorry, but I don't think that's it. I did notice it was avoiding the built-in and I had a look at /usr/bin/kill - I should have posted the information but I don't like to bore people...
Forum: AIX 07-10-2007
6,493
Posted By alexop
kah00na - yes, sorry! You're right through; I'd...
kah00na - yes, sorry! You're right through; I'd like to know how the script allows users to kill other users.

Here's the output, I'm afraid it's not that:

-rwxrwxr-- 1 kcckr users ...
Forum: AIX 07-09-2007
6,493
Posted By alexop
Script allows user to kill other users: I'd like to know HOW...
Hello list,

Have a problem that's highlighting gaps in my knowledge; can you assist?

We have a script that's tacked onto our trading application which allows branch managers etc. to kill off...
Forum: AIX 09-28-2006
4,689
Posted By alexop
As far as I'm aware this is how kernel rootkits...
As far as I'm aware this is how kernel rootkits operate - see if you can find a kernel module (if this is correct AIX terminology) rootkit for AIX and study that... or are you trying to fill a 'gap...
Forum: AIX 06-28-2006
5,393
Posted By alexop
Can you set up a networked printer as a local print queue?
Fairly simple question, I think. Still trying to get my head around AIX print queues. Most of our problems seem to stem from print queues going down. This generates help-desk calls when users call...
Forum: AIX 06-28-2006
22,581
Posted By alexop
a few pointers; use the 'file' command to...
a few pointers;

use the 'file' command to determine what type of file you're dealing with. This doesn't just work for compressed files, this works for all files. It's useful because a file...
Forum: AIX 06-28-2006
5,887
Posted By alexop
Possibly a permissions issue... Some daemons...
Possibly a permissions issue... Some daemons don't like it when files don't have specific permissions (rsh, for example). Try and mount the windows share so it (and all the files within) have...
Forum: AIX 06-28-2006
9,837
Posted By alexop
What causes a print queue to go down?
Morning, All

I've been doing some work on AIX print queues, troubleshooting some underlying issues we've been having. In the process of this I've uncovered some potential gaps in our knowledge. ...
Forum: AIX 06-19-2006
4,165
Posted By alexop
Faint bells are ringing with this 'recovery_type'...
Faint bells are ringing with this 'recovery_type' thing... unfortunately I'm still at a loss! You'll have to forgive me as I'm relatively new to all this. I've had a look around in the qconfig file...
Forum: AIX 06-19-2006
4,165
Posted By alexop
Can you stop qdaemon from emailing users?
Morning, All.

Does anyone know how to stop qdaemon from emailing users when print jobs fail?

This is causing a problem as the application that we use is mail-aware; users get a prompt onscreen...
2,251
Posted By alexop
Does this happen without me explicitly requesting...
Does this happen without me explicitly requesting it. I know that from the shell you can do this by calling <program> thus '<program> < inputfile', is this what you mean? If so, then how is this...
2,251
Posted By alexop
Many thanks, Perderabo, that worked a treat. Can...
Many thanks, Perderabo, that worked a treat. Can you explain, or preferably point me to a website/free resource where I can read up on why your solution works. I have a few guesses but this whole...
5,247
Posted By alexop
using the command 'time' followed by the script...
using the command 'time' followed by the script will give you an output. In ksh it's a builtin, which means that it's more accurate and suffers from less overhead. There's also a binary standalong...
8,750
Posted By alexop
This should do the trick... if [[ `ps -ef |...
This should do the trick...

if [[ `ps -ef | grep -v $$ | grep -c trigger.sh` -ne 1 ]]; then
#do whatever you feel appropriate
fi
2,251
Posted By alexop
Strange behavior from 'read' statements. (ksh - but could be same on other shells)
I'm getting rather frustrated with an interactive script I'm writing.

The script is divided up, with section for setting variable at the top, then functions (which make up most of the script)...
Showing results 1 to 25 of 25

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