Search Results

Search: Posts Made By: raghunsi
Forum: Debian 10-21-2017
14,982
Posted By raghunsi
Wlan0 Failed to UP in Kali Linux
Dear Moderator,

While working on airmon-ng when the situation has come to set wlan0 on monitor mode


Identification Wlan0

root@kali:~# iwconfig
lo no wireless extensions.

wlan0 ...
2,683
Posted By raghunsi
Help with SFTP script
Hi All,

I'm in need of script which picks multiple files from one server and do sftp to multiple servers. Any help would be much appreciated.
2,431
Posted By raghunsi
Can you please guide me, where this script is...
Can you please guide me, where this script is erroring out .

---------- Post updated at 11:36 PM ---------- Previous update was at 09:54 AM ----------

The Script seems to be almost perfect...
2,431
Posted By raghunsi
Jay, I have removed the function and i tried...
Jay,

I have removed the function and i tried again, its the same result.


./OpenSSLConTest.sh
./OpenSSLConTest.sh: line 77: syntax error near unexpected token `;;'
./OpenSSLConTest.sh: line...
2,431
Posted By raghunsi
Jay, Its the same result, no difference ....
Jay,

Its the same result, no difference . First I want to test for usage, there only getting failed.


$ ./OpenSSLConTest.sh
./OpenSSLConTest.sh: line 83: syntax error near unexpected token...
2,431
Posted By raghunsi
Yes, I have modified the code, the case statement...
Yes, I have modified the code, the case statement was not closed before. Below is an example.


case $1 in
-a|-A) echo "Trying to test ${OPSS_CGI_AB}"
while read a; do
...
3,273
Posted By raghunsi
If the session takes long, send hup signal and...
If the session takes long, send hup signal and end the session, thats the better option, based on the exit code, term the port as closed or etc etc. But when port is closed , I have seen the command...
3,273
Posted By raghunsi
Then try using /usr/sfw/bin/openssl s_client...
Then try using /usr/sfw/bin/openssl s_client -connect HOST_NAME:PORT, this works much better than telnet in Production area, you can have script build around the range of ports that needs to be used...
2,431
Posted By raghunsi
vbe, There was an error in case statement, I...
vbe,

There was an error in case statement, I rectified and added space after 0 in exit status check, but found to be an error in Line 83


./OpenSSLConTest.sh
./OpenSSLConTest.sh: line 83:...
2,431
Posted By raghunsi
Script Testing
Hello Scripting Czars

I have written one script, which does the Openssl Connection test to 1000's of server's , but before it finally takes off , its error-ring out, kindly take a look into this....
2,475
Posted By raghunsi
I still see some error here, the ${DT1} is not...
I still see some error here, the ${DT1} is not getting the exposed, instead it showing something like this.


gzip:...
2,475
Posted By raghunsi
Result is different this time, I do receiving...
Result is different this time, I do receiving the result but its partial, since the script is not reading the DATE file, which contains the date for which the script should generate the report and...
2,475
Posted By raghunsi
Please correct my script
Please correct my script if it any exceptional, since im calling other external script with in my script.


#!/bin/bash

FE1=TMM
DT1=/home/myHome/dated_1
REPORT=/home/otherHome/Report.sh

##...
3,916
Posted By raghunsi
The above password and Login is provided by the...
The above password and Login is provided by the Service Provider in the same format. They have been edited for security purpose.

Currently i see the wget version 1.9. Please take a look.



$...
3,916
Posted By raghunsi
How to fetch File from a URL to Unix Server?
Hello All,

I wanted to get the software to be fetched from the Service Provide URL to my unix server. I tired using the mget, but resulted in error. Please take a look.



$ wget -O...
8,237
Posted By raghunsi
From the script.. I need to ignore two...
From the script.. I need to ignore two components.

1st -> ^Error
2nd -> ' FS=":"

Primarily For Error

Because these two components are always dynamic . This keep changing. Sometimes we...
8,237
Posted By raghunsi
So here i have attached the file for you. Have a...
So here i have attached the file for you. Have a look into that
8,237
Posted By raghunsi
How to Add Table with Header for Shell Output
I have a Script that generates 3 columns of the result. The line script is



/usr/xpg4/bin/awk -F' [<>]' '{print $1 /t $2}' File_Name | awk -F'>' '{print $2}' | cut -d'<' -f1 | sort -rn | uniq...
1,360
Posted By raghunsi
I tried with getopts , but still failing for some...
I tried with getopts , but still failing for some reason. Can someone assist for above query.

---------- Post updated at 12:42 AM ---------- Previous update was at 12:18 AM ----------

How to...
1,360
Posted By raghunsi
Is there anything wrong?
For one of my script, I want one extra parameter needs to be added to one of the Usage option. Below its given



#Check Input parameters are valid
if [ $# != 4 ]; then
function usage() {
...
2,076
Posted By raghunsi
The first syntax is to create a space between two...
The first syntax is to create a space between two tags where <ns1:Errort> tag starts, which works fine with


Sample 1: Worked really well.

sed 's/\(<\/[^>]*>\)\(<[^:]*:Errort\)/\1 \2/g' test...
2,076
Posted By raghunsi
Syntax sed...
Syntax



sed 's/\(<\/[^>]*>\)\(<[^:]*:Errort\)/\1 \2/g' test > test2



Worked well, but need to check other way round now. Do this syntax work? This syntax is for closing namespace...
2,076
Posted By raghunsi
Thanks for your precious input, both of your...
Thanks for your precious input, both of your syntax worked very well.

Mark

Can you explain me the syntax, since your syntax worked for both opening and closing namespace.

---------- Post...
2,076
Posted By raghunsi
Result is the same, Space is not getting created...
Result is the same, Space is not getting created when i used


<^.:Errort>


But space will get created when i used the exact expression , something like this.


<ns1:Errot>


But this...
2,076
Posted By raghunsi
Do syntax is correct ?
I tried with sed command to create a space between namespace from the XML file. I used this syntax. Can someone tell me is this syntax is vaild?



/usr/xpg4/bin/sed -e...
Showing results 1 to 25 of 108

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