Im new to bash script, trying hard to learn and enjoying this process. However i'm pretty much stumped, so i will put my problems out there. In the hope someone can help me. I am trying to make a bash script that allows users of a Unix system (with little knowledge under the hood ) to be able to easily find there way around simple tasks, they may need to perform.
Before they use this script, i would like them to login first. They would login, if the attempt was successful; then the script would run. But if login was not successful they are taken back to login to re-try.
I'm thinking there needs to be a loop within the login code so as to send them back to try again if unsuccessful . . is this right?? The code i have used for login does not work, whatever i type it says wrong info?
Thanks for any help, my code so far is below . .
Rgds Willo
Last edited by vbe; 11-11-2014 at 12:39 PM..
Reason: typos - missing square braket...
Hi all,
I have a problem not really dramatic but realyl annoying:
i've got a groups of users who logon a sunos 2.3 box via a windows telnet client (KEAI, but this is not the problem).
they login as perso1 and password.
It takes a very very very long time to get in.
If i log on the same box... (2 Replies)
Hi,
I need a script which can apply 'cd' command .
for example there is a directory:
(myDirectory)
#cd myDirectory (current dir is myDirectory)
my script can do this:
#do (current dir is myDirectory) (do is my script)
Thanks. (2 Replies)
Hi All,
First time poster so be gentle - Also apologies if this is in the wrong section.
I am not a unix administrator but as a Storage administrator know enouh to get me by for what I need to do.
However I am having a slow night-shift so I am playing about with a bit of scripting to... (7 Replies)
I have a file that contains these lines
User ID Username
-------- ----------
7738626,zrazak
7783535,jvincigu
7805567,ldrennan
7805583,mtsakama
I need to sort the names alphabetically
How can I sort the lines based on the user names ?
I would appreciate a quick reply anyone
... (1 Reply)
Hi all,
I am stepping into web-development as a hobby point of view. I am using WAMP server & have created the initial page & SQL set-up too. My problem is, I was able to login to a page/redirect to a page though I haven't specified my username & password. I thought of using both... (2 Replies)
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Hi guys,
Ok so I'm basically trying to run a script on loging or after everything else has started up, I've done so much googling my head is spinning I don't understand the which file I have to edit with the details of my script,
In suse there is no etc/profiles folder its daemonised so its... (1 Reply)
Hello,
I just started with shell and i am doin simple script to check if certain user is logged in. Script takes 3 args. name sleep time and quit value
if there is q for quit then date and user name is printed to file, not to screen.
so far i have got this...
login()
{
while :... (3 Replies)
Hi team,
I have two select statements and need to run them using SYSDBA user
select * from temp_temp_seg_usage;
select segment_name, tablespace_name, bytes/ (1024*1024) UsedMb from
dba_segments where segment_name='TEMP_TEMP_SEG_USAGE';
Need to run this using a shell script say named... (1 Reply)
Hello all,
for security reasons my compagny imposes that my script be launch remotly via ssh under the users login shell.
So serverA launches the ssh command to serverB which has a local user with my script as a login shell.
Local script works like a charm on his own.
serverB$ grep... (20 Replies)