Search Results

Search: Posts Made By: coolkid
1,135
Posted By coolkid
It is working. TY
It is working. TY
1,135
Posted By coolkid
How do i make input start with a letter?
Howdy folks,
How do i make the input start with a letter and certain num of numbers and if anything else is entered it should display error

for ex; a123455 is good ( exactly 7 characters)
...
10,097
Posted By coolkid
Thank you
Thank you
10,097
Posted By coolkid
Script to bypass the password field
Hello all
Im trying to write a script that can get past the "enter password" field.Coming to the details, Im planning to write a script that can actually check for the validity of certificates...
2,095
Posted By coolkid
I'm trying to find whether ports are open or...
I'm trying to find whether ports are open or not...as these wrk servers are new..
2,220
Posted By coolkid
Telnet Script
Hello,
I wrote a script for doing telnet.However the requirement got changed and now I have to write a telnet script that will

1. Do the telnet from all the virtual ips in a box(Ex: x.x.x.x...
2,095
Posted By coolkid
Telnet Script
Hello,
I wrote a script for doing telnet.However the requirement got changed and now I have to write a telnet script that will

1. Do the telnet from all the virtual ips in a box(Ex: x.x.x.x...
1,037
Posted By coolkid
Thnks bro..We did exactly like you said however...
Thnks bro..We did exactly like you said however we are getting a blank output

[user@machine]# cat test
#!/usr/bin/ bash
while read line
do
WInstname=`echo $line | awk -F "Iname -"...
1,037
Posted By coolkid
Assigning value to a paramter
Howdy folks,
Im trying to assign the output of awk to a parameter.But it is not working.Need your input guys.


while read line
do
WInstname = `awk -F"Iname -" '{print $2}'`
done <...
8,448
Posted By coolkid
Yep, you are right.thank you sir, its working now.
Yep, you are right.thank you sir, its working now.
8,448
Posted By coolkid
Here is what im getting host$ cat demo ...
Here is what im getting

host$ cat demo
http-port = 80

host$ ./test2
enter value
81

host$ cat demo
http-port = 80


Filename:test2 has the code I posted earlier and it should change...
8,448
Posted By coolkid
Im not getting errors however its not working...
Im not getting errors however its not working meaning its taking the value however it is not changing the value..
8,448
Posted By coolkid
Replacing Port number Using Sed
Hi
Im trying to replace http port value.However for some reason its not working.Can you guys take a look and hit me with suggestions please.Your help is much appreciated.


echo "Enter Value"...
2,472
Posted By coolkid
I dont know about ssh.Can you give me a brief...
I dont know about ssh.Can you give me a brief example please..
2,472
Posted By coolkid
SFTP and DMZ boxes
Hi
I would like write a script that will do sftp frm a box that resides inside the FW to a box that resides in DMZ.Any ideas guys.I tried generating rsa keys for a particular user, however just...
1,635
Posted By coolkid
Yea..I really dont know what you did.I copied...
Yea..I really dont know what you did.I copied your code and it started working...Thanks man.
1,635
Posted By coolkid
Tried that...still getting the same error.. ...
Tried that...still getting the same error..

echo "Enter ip "
read ans_ip

echo "Enter environment[sandbox/production]"
read ans_env

echo "Enter Datacenter [dc1/dc2]"
read ans_dc

...
1,635
Posted By coolkid
error with ftp
Hi

I have like this
----------------------------------
echo "Enter ip "
read ans_ip

echo "Enter environment[sandbox/production]"
read ans_env

echo "Enter Datacenter [dc1/dc2]"
read...
1,389
Posted By coolkid
BubbaJoe--Thanks Scott--Valid point...Yes it...
BubbaJoe--Thanks

Scott--Valid point...Yes it has EOF at the end..



echo "Enter filename"
read fname
ftp -v -n abcd.efh.kk.com << EOF
user userid pwd
bin
mget $fname.tar--not working if...
1,389
Posted By coolkid
FTP question
HI
In my script its like this

------------
echo "Enter filename"
read fname

ftp -v -n abcd.efh.kk.com << EOF
user userid pwd
bin
mget $fname.tar--not working if i give "$fname", works...
1,239
Posted By coolkid
Mmmmmm... we have a complex...
Mmmmmm...

we have a complex environment..servers come and go quite often..all i want to check is

For ex:
If the input is 23bck.demo.tes.com--it should be rejected
2s39.demo.test.com--it...
1,239
Posted By coolkid
Filtering Fake inputs
Hi
My script takes input for a hostname.

echo "enter hostname [abcd123.efgh.ijk.com]
read hostname


Now I would like to filter the fake inputs.My hostnames always follow same syntax (...
3,535
Posted By coolkid
Yea you are right..Spoke with my SA and he did...
Yea you are right..Spoke with my SA and he did his magic (in sudoers file) and it started working....

ssh user@hostname sudo /file/path--requires some tweaking frm SA before you run it...
...
3,535
Posted By coolkid
Thanks for the response..As per your suggestion I...
Thanks for the response..As per your suggestion I tried like this

ssh user@hostname sudo rootsh---didnt work
or
ssh user@hostname "sudo rootsh"---didnt work either

and

ssh user@hostname...
3,535
Posted By coolkid
SSH and SCP HELP
Hi all
Iam using ssh and trying to change to a different user but im not able to do it.
--------
Script.sh
ssh user@hostname
sudo rootsh
whoami
--------

--------
Script2.sh
ssh...
Showing results 1 to 25 of 84

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