Search Results

Search: Posts Made By: azmathshaikh
2,094
Posted By azmathshaikh
cannot use the same script to read cookie
Hi all,

I am using the following code to read a cookie. when this script is hosted on a unix server(solaris) it runs perfect. but when executed on a windows machine cannot retrieve the cookie.
...
1,817
Posted By azmathshaikh
capture the ouput!
Hi,

my perl script is calling another external java program. The Java in turn prints out a string. how can I capture the string.
------------------
#!/usr/bin/perl

print...
16,943
Posted By azmathshaikh
If the OS is *nix, the easiest way I think is to...
If the OS is *nix, the easiest way I think is to call the same command from inside perl script.

print `cat file1 file2 file3 > Main_File`;

Otherwise read the file in array and write them to one...
4,877
Posted By azmathshaikh
Capture POST data
Is it possible to capture data posted from a Web Form?? I mean when data in the form on a webpage is send via POST method and not GET method. Can it be captured!
2,468
Posted By azmathshaikh
Unique String
Hi,

While creating users in one of my application, the passowrd for the user has to obey the following rules.

password cannot be the same as the user name
password must have a minimum of six...
1,860
Posted By azmathshaikh
It works fine for all ports (atleast for me). I...
It works fine for all ports (atleast for me). I dump the output to a temporary file and do a grep for string "connected" to check if the connection was successful!
Thanks
90,549
Posted By azmathshaikh
Initialize the variable to some value say 'x'. ...
Initialize the variable to some value say 'x'.

var="x"

if(var ne "x") { the variable contains some value other than 'x' }
else { the variable is not changed }
1,860
Posted By azmathshaikh
checking a connection
Hello,

Is it possible to check if a host is accepting connections on a particular port using a shell script? Can't we automate telnet to check for the same?

Thanks in advance
Azmath H Shaik
21,012
Posted By azmathshaikh
grep numbers range
I want to grep a range of numbers in a log file. My log file looks like this:

20050807070609Z;blah blah
That is a combination of yr,month,date,hours,minutes,seconds.
I want to search in the log...
1,799
Posted By azmathshaikh
Look a string within a range!
Hi,

I've a table with values Low & High.
ex: NRA* - NZ99

If the input is NR20, the script should tell me which range it belongs to.
I was thinking of splitting the word into alphabets & then...
2,856
Posted By azmathshaikh
You may also use iptables or ipchains
You may also use iptables or ipchains
3,400
Posted By azmathshaikh
Reverse *
when I do
$ ls z*
List of all files begining with 'z'. But what if I want to do a reverse lookup. Just for interest sake ;)
$ ls ztr
should be same as
$ ls ztr*
$ ls zt*
$ ls z*
21,764
Posted By azmathshaikh
Its working now! #!/bin/ksh { while...
Its working now!

#!/bin/ksh
{ while IFS="";read myline
do
echo $myline
done
} < filename

Thanks a lot
21,764
Posted By azmathshaikh
Thanks! It works fine on the prompt. How can I...
Thanks! It works fine on the prompt. How can I put it in the script. I've a script which reads each line from the input

#!/bin/ksh
{ while read myline
do
echo $myline
done
} <...
21,764
Posted By azmathshaikh
Keep spaces with read command
Hi

The following command read a string from the keyboard & echo it back.
$ read S;echo "$S"
ABCD
ABCD

As you see, the input has space. while it echo back the spaces are removed. Is...
2,651
Posted By azmathshaikh
$ if [ -f *.boo ]; then x=`ls *.boo |wc -l`;echo...
$ if [ -f *.boo ]; then x=`ls *.boo |wc -l`;echo $x ; else echo "0"; fi
3,270
Posted By azmathshaikh
sorry for the last one. bash-2.05$ more...
sorry for the last one.

bash-2.05$ more abcd.txt
hai hai $hai hai $haihai thai $thai bhai $bhai hai

bash-2.05$ tr -s ' ' '\n' <abcd.txt|sed '1,$s/^hai/power hai/g';echo
power hai
power hai...
3,270
Posted By azmathshaikh
send the output to a file bash-2.05$ more...
send the output to a file

bash-2.05$ more abcd.txt
hai $hai $haihai thai $thai bhai $bhai


bash-2.05$ cat abcd.txt|sed 's/^hai/power hai/g'
power hai $hai $haihai thai $thai bhai $bhai
3,270
Posted By azmathshaikh
bash-2.05$ echo "hai thai haihai $hai"|sed...
bash-2.05$ echo "hai thai haihai $hai"|sed 's/hai/power hai/g'
power hai tpower hai power haipower hai
1,586
Posted By azmathshaikh
http://www.sun.com/software/security/jass/
http://www.sun.com/software/security/jass/
4,393
Posted By azmathshaikh
I dont know the actual process, but the following...
I dont know the actual process, but the following info may help.

The kernel keeps record of all the processess running in the System in a process table. I dont know about other *nix, but Solaris...
18,219
Posted By azmathshaikh
split string with multibyte delimiter
Hi,

I need to split a string, either using awk or cut or basic unix commands (no programming) , with a multibyte charectar as a delimeter.

Ex:
abcd-efgh-ijkl
split by -efgh- to get two...
Showing results 1 to 22 of 22

 

Featured Tech Videos

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