Search Results

Search: Posts Made By: vickylife
Forum: IP Networking 04-07-2011
3,560
Posted By vickylife
How to Determine client's DNS server Ip
Is there a way for a server to determine client's DNS ip? I have an application that logs client's IP but in certain cases its desirable to know their DNS too
Forum: Programming 02-05-2011
3,381
Posted By vickylife
Jim, I had an impression tying the two condition...
Jim, I had an impression tying the two condition together will improve performance. If that is not necessarily the case, I will go with current syntax
Forum: Programming 02-04-2011
3,381
Posted By vickylife
Using sql like to choose a pattern and exclude a pattern
Hi, I am writing an sql query in which i have to choose only that url that are from particular host but are not zip files. something like:


select * from mytable where url like '%myhost%' and url...
3,010
Posted By vickylife
Hi Methyl, Thank you for your quick help. I...
Hi Methyl,

Thank you for your quick help. I have adopted your code and make subtle changes to suit my purpose. this is how the code currently looks like :

#!/bin/ksh
PN="`basename $0`"
#...
3,010
Posted By vickylife
bump Plz help me
bump

Plz help me
3,330
Posted By vickylife
try : yes | mysqladmin -u root...
try :

yes | mysqladmin -u root --password='******' --socket=/tmp/mysql.sock drop ROAD_HAULAGE_TEMP

This should work
3,010
Posted By vickylife
i dont think i am allowed to use find command. I...
i dont think i am allowed to use find command. I am actually preparing for a test and this is one of the sample question for the test
3,010
Posted By vickylife
recursive searching for files in directory that matches a particular name - taking care of links
Hi,
I am writing a shell script that finds all files named <myFile> in a directory <dir> or any of its subdirectories, recursively. I also need to take care of symbolic links that may form...
12,605
Posted By vickylife
Python- Changing background color on Button click
Hi,

I am trying to write a python program which changes background color on click of button. However i am stuck up. Instead of changing the color currently it is creating a new frame every time.
...
6,308
Posted By vickylife
I just did a little digging and found what i was...
I just did a little digging and found what i was looking for. Use
ssh -o 'PreferredAuthentications=publickey'
6,308
Posted By vickylife
Exit SSH if it is interactive
I am writing an automation that will ssh into hundreds of system and run a few commands. I ll be looping from ip X.X.X.10 to X.X.X.200

I have public key set up ready for "most" of them to run ssh...
9,175
Posted By vickylife
How do i write that script? Writing a script that...
How do i write that script? Writing a script that ssh to each system will be very tedious as i ll have to first create public key pair for around 100 systems. Is there a easier/simpler way to do this?
9,175
Posted By vickylife
Shutdown all systems remotely
Hi,
I am a sysadmin. During long weekends i need to turn off all machines in my lab. Is it possible to shutdown systems using ip address without using ssh.

i read somewhere that shutdown -m...
7,326
Posted By vickylife
Standard way to remove comments is: grep -v...
Standard way to remove comments is:
grep -v "^#"
This will ensure that only lines which begins with '#' are removed and will not have any side effects
17,618
Posted By vickylife
Actually I am writing a script which will be...
Actually I am writing a script which will be executed in client box. Of course i cannot change the security settings (related to ssh) in there box.
Using my script the client need to connect to...
17,618
Posted By vickylife
How ti check if passwordless ssh is enabled between two systems
I am writing a script which will execute commands on remote host only if they have a passwordless ssh setup. How do i check for that in my script
1,519
Posted By vickylife
if the entries are exactly similar. "cat...
if the entries are exactly similar.
"cat logfile | sort -u "will work fine

in your case:
"cat logfile| awk -F':' '{print $1}'| sort -u" should work
25,095
Posted By vickylife
stripping http and https from a url using sed
I have to write a sed script which removes http and https from a URL. So if
a URL is https://www.example.com or Example Web Page (http://www.example.com), script should return me Example Web Page...
Forum: UNIX and Linux Applications 06-10-2009
1,480
Posted By vickylife
Printer Usage Moniotring Application
Is there any application to monitor printer usage. I searched on google and all of them seemed to be for Windows only.
I am a sysadmin and a common printer is connected to all machines. I need...
1,496
Posted By vickylife
allow only alphnumeric entry and an underscore
I am taking an user input which should only be an alphanumeric character or an underscore. How to i do it?
6,911
Posted By vickylife
I did try this way bash-3.00# echo "hello...
I did try this way

bash-3.00# echo "hello hello hi" | tr ' \t' '\012' | sort -u | tr '\012' '\t'
hello hi bash-3.00#

Now i am getting extra spaces in the end and solution doesn't...
6,911
Posted By vickylife
is that the only way? can't i do it using 'sed'...
is that the only way? can't i do it using 'sed' or something?
6,911
Posted By vickylife
'sort' works only when inputs are separated by...
'sort' works only when inputs are separated by lines...here they are separated by
spaces.
bash-3.00# echo "hello hello" | sort -u
hello hello
6,911
Posted By vickylife
Removing duplicates from string (not duplicate lines)
please help me in getting following:

Input Desired output
x="foo" foo
x="foo foo" foo
x="foo foo" foo
x="foo abc foo" ...
Forum: Solaris 02-20-2009
9,937
Posted By vickylife
Before you can use service tag command you have...
Before you can use service tag command you have to install service tag packages. The service tag packages are SUNWservicetagr, SUNWservicetagu & SUNWstosreg. You can install these packages through...
Showing results 1 to 25 of 47

 

Featured Tech Videos

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