Search Results

Search: Posts Made By: shatztal
Forum: Solaris 08-11-2011
4,907
Posted By shatztal
when i do that is sayd /usr/loca/bin/sudo :...
when i do that is sayd /usr/loca/bin/sudo : command not found
Forum: Solaris 08-11-2011
4,907
Posted By shatztal
Works Like a Charm now.Thanks alot ...
Works Like a Charm now.Thanks alot

---------- Post updated at 07:09 AM ---------- Previous update was at 05:34 AM ----------

in regards on that subject i need to use the parameters for SSH...
Forum: Solaris 08-11-2011
4,907
Posted By shatztal
it does not work take a look: bash-3.00#...
it does not work take a look:

bash-3.00# i=$(tail -1 /etc/passwd | awk -F":" '{ $3 }')
awk: illegal statement 603350
record number 1
bash-3.00# echo $i

bash-3.00#
Forum: Solaris 08-11-2011
4,907
Posted By shatztal
Thanks , can maybe tell me why this command does...
Thanks , can maybe tell me why this command does not work

Number = tail -1 /etc/passwd | awk -F":" '{ $3 }'

i want to put the UID of a user into a variable as a number andsd the increse by 1
Forum: Solaris 08-11-2011
4,907
Posted By shatztal
How to Use a Variable as Integer?
hello,
i am writing a script that takes the UID from the PASSWD and then i want
to increse the Number by one. for the Next user.
i cannot get this to work that a variable is as interger
example:...
Forum: HP-UX 08-09-2010
3,854
Posted By shatztal
How to backup IGNITE not with Make_recovery_tape?
Hello,
i have a HPUX 11.11 System. i want to back it up and i did it alredy but i cannot remember how i did that , cause when i try to do make_recovery_tape it doesn't work , it there maybe any...
Forum: Solaris 08-02-2010
5,317
Posted By shatztal
thanks alot m put somehow when i try the command...
thanks alot m put somehow when i try the command with useradd instead of passwd it doesn't work.

#Alredy connected to Server1
read $serial
read $Name
ssh -t Username1@server2...
Forum: Solaris 07-29-2010
5,317
Posted By shatztal
how to Remote Reset Password for User ?
Hello, everyone i have a little scenario and would like help ,
SCENARIO
OS : SunOS 5.10
Shell: KSH
UserName 1 connects to Server1 .He should run a little command or somthing to server2 that...
1,925
Posted By shatztal
how to Remote Reset Password for User ?
Hello, everyone i have a little scenario and would like help ,
SCENARIO
OS : SunOS 5.10
Shell: KSH
UserName 1 connects to Server1 .He should run a little command or somthing to server2 that...
7,524
Posted By shatztal
Thanks to all of you it waas a good help for me
Thanks to all of you it waas a good help for me
7,524
Posted By shatztal
ok , So if i do echo "EnterUsername" read...
ok , So if i do

echo "EnterUsername"
read user
while [ -z "$user" ];
do
echo "User is empty try again"
read user
done
echo "The UserName is : $user"
fi


is that correct?
7,524
Posted By shatztal
ok thanks again, so i can use -z to do in a while...
ok thanks again, so i can use -z to do in a while ?
7,524
Posted By shatztal
so if the Variable is with input it is TRUE and...
so if the Variable is with input it is TRUE and goes into the IF and if not then it goes out?
7,524
Posted By shatztal
ohhh now it works , and another thing small , how...
ohhh now it works , and another thing small , how to check if a VARIABLE is not EMPTY ?
7,524
Posted By shatztal
help
This is the Script, it does not work
pleseee


bin/ksh
echo "Enter Name 1"
read Name1
echo "Enter Name 2"
read Name2
echo "------------------------"
echo "First Name: $Name1"
echo "Second...
7,524
Posted By shatztal
so what should i do ?
whalt should i do? can't i compare some VARIABLES?
7,524
Posted By shatztal
i use ksh
i use ksh
7,524
Posted By shatztal
i have tried this also and still this is the...
i have tried this also and still this is the output
7,524
Posted By shatztal
i Did what "JIM" Sad and i get an output of...
i Did what "JIM" Sad and i get an output of "unknown test operator"
7,524
Posted By shatztal
How to Compare 2 Strings ?
Hello , I want to Compare with 2 strings and get if they are True or not
please would like some help on this


#!bin/ksh
echo "Enter Name 1"
read Name1
echo "Enter Name 2"
read Name2
echo...
Forum: Solaris 01-05-2010
2,722
Posted By shatztal
i still get an error
i changed the echo command and removew the echo or else i just got the ouput of the command

usermod -c 123456 UNIX
usermod -c 123456 Microsoft


after that the command you gave me printed out...
Forum: Solaris 01-05-2010
2,722
Posted By shatztal
thanks but
where should i but put the line you wrote?

i tried just to run the ROW you wrote in the shell Console but it gives me somthing like
"while: Expression syntax"
Forum: Solaris 01-04-2010
2,722
Posted By shatztal
Ok i will check it but just that you know
when i print out the variables like this

echo $ID $user
it prints out ok the ID and the User

but when i print out the
echo $user $ID
it does not print out the users just the ID
...
Forum: Solaris 01-04-2010
2,722
Posted By shatztal
Need help with script when trying to modify user
The script get a csv file with 2 colls for example:
123456,UNIX
963852,Microsoft

the script supose to put the number in the Description of the user in this case UNIX or Microsoft
the error i...
Showing results 1 to 24 of 24

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