Search Results

Search: Posts Made By: shiv2001in
Forum: AIX 02-26-2011
4,534
Posted By shiv2001in
okay - before I implement this script I would...
okay - before I implement this script I would like to understand the format or contents / lines to be in "prt.add" ? just the queue names or with ip address - I know it should have only queue names...
3,168
Posted By shiv2001in
nps Sir - thank you I have learn some scripting...
nps Sir - thank you I have learn some scripting skills from you.
4,508
Posted By shiv2001in
perfect - that means then the middle ware the...
perfect - that means then the middle ware the system I'm on is not allowing - might depends on system to system / env to env :-)

But, I really appreciate you help here.
Forum: AIX 02-24-2011
4,534
Posted By shiv2001in
AIX Bunch of printers queue creation script - HELP
I'd seek for help on how to create a bunch of printers in AIX 6.x or equal or above in one go – say like I have 35 printers to create in 4 different AIX Nodes every month – I currently create it...
4,508
Posted By shiv2001in
yes that works from command line good - I came to...
yes that works from command line good - I came to conclude that this might not work b/c its logging into the middle ware prompt.
4,508
Posted By shiv2001in
Sorry sir - it is not working - its just hangs...
Sorry sir - it is not working - its just hangs and wont respond and I have Ctrl+C to quit my putty
4,508
Posted By shiv2001in
sorry tell you it's still not - its freezing my...
sorry tell you it's still not - its freezing my terminal my tty - I have to quit and login again.
4,508
Posted By shiv2001in
Nope still not working ./test-script[25]:...
Nope still not working

./test-script[25]: 0403-057 Syntax error at line 30 : `while' is not expected.
4,508
Posted By shiv2001in
This is what I have now and it won't stay in the apps/middleware prompt
#!/usr/bin/sh
/bin/clear

domain=$1
Mailto=$2
echo " "
echo " "
print "\t~~~~~~~~~~~~~~~~~~~~~~"
print "\tChecking for App$domain:"
print "\t~~~~~~~~~~~~~~~~~~~~~~"
echo " "
...
4,508
Posted By shiv2001in
Shell Script for remote Middleware
Hi Experts, :confused:

I need help in one of my bit complicated script (for me complicated for experts like you might be simple).

I have 100+ Middleware servers and 200+ DB servers and 200+...
182,243
Posted By shiv2001in
these is again depends on the user he prefers but...
these is again depends on the user he prefers but - easy t ore-call last any commands instead you type they all from start - ksh -o vi
Forum: AIX 02-17-2011
2,333
Posted By shiv2001in
set the profile shell to what u want explicitly...
set the profile shell to what u want explicitly and enable ssh to the servers you want them to only move between. Sorry if I have understood you correct.
3,168
Posted By shiv2001in
No Sir - not working - I did your other tip that...
No Sir - not working - I did your other tip that to key in the password and supply. I was trying to do it in real fashion like - the user I know in my group to allow the access - so who -b and I...
3,168
Posted By shiv2001in
there is a deference in whoami and who -m | awk...
there is a deference in whoami and who -m | awk 'Print $1}'
whoami shows me "root" and who -m shoes "user1"
3,168
Posted By shiv2001in
in my case user1 user2 user3 and so on will be...
in my case user1 user2 user3 and so on will be authorized users to run this script - I should allow them and rest others who are NOt "who -m | awk '{print $1}'" the out put should not use it and exit...
3,168
Posted By shiv2001in
[ ! "who -m|awk '{print $1}'" = "user1" -o...
[ ! "who -m|awk '{print $1}'" = "user1" -o "user2" -o "user3" ] && echo "You are not authorized to run this script" && exit 1

is this correct ?
3,168
Posted By shiv2001in
correct - but, in my case we have lots of admins...
correct - but, in my case we have lots of admins and I want to allow certain admins only - $who -m|awk '{print $1}' <- if they are these admins only I will allow - becase whoami says root and many...
3,168
Posted By shiv2001in
because I want only certain users in the admin...
because I want only certain users in the admin group to run - once they supply their real/won password the script should continue else should exit out.
3,168
Posted By shiv2001in
and how do i do it in real time usernames and...
and how do i do it in real time usernames and user's password? please advise.

---------- Post updated at 01:58 AM ---------- Previous update was at 01:56 AM ----------

yes please it should ask...
3,168
Posted By shiv2001in
This is alomost done my requirement but, still...
This is alomost done my requirement but, still not 100% - first of all thanks so much.

my requirement is to supply set os usernames who can excute the script against the passwd file or texting in...
3,168
Posted By shiv2001in
/bin/clear echo "Please enter the PASSWORD:" ...
/bin/clear
echo "Please enter the PASSWORD:"
stty -echo
read PASSWORD
stty echo
LIST_USERS="user1"|"user2"|"user"
for i in $(echo "$List" | sed "s/|/ /g");do
if [[ "$PASSWORD" == "$i" ]];then...
3,168
Posted By shiv2001in
Nope I tried that - that doesn't work too.
Nope I tried that - that doesn't work too.
3,168
Posted By shiv2001in
Shell Script for User AUTH Help
#!/usr/bin/ksh
/bin/clear

LIST_USERS="user1|user2|user"

echo "Please enter the PASSWORD:"
stty -echo
read PASSWORD
stty echo

if [ "$PASSWORD" = = "$LIST_USERS" ]; then
echo "You...
Showing results 1 to 23 of 23

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