Search Results

Search: Posts Made By: UnknownGuy
1,497
Posted By UnknownGuy
Thanks RudiC, It works & gives correct value...
Thanks RudiC,

It works & gives correct value as well.
1,497
Posted By UnknownGuy
Date Difference
Hello Guys,

I am trying to find the difference between two dates & need to assign that value in a variable for further code. I am able to find the difference but have some issues with it.
1....
3,613
Posted By UnknownGuy
Isn't it possible to use concept of telnet from...
Isn't it possible to use concept of telnet from source server & some sort of querying where it scans all ports one by one & gives the output ?
Or may be some port scanning tool ?
3,613
Posted By UnknownGuy
thanks guys & sorry for delayed response, as I...
thanks guys & sorry for delayed response, as I was away. But this is not I am looking for, what I need is something like below :

<some_command> <source-ip> <destination-ip>

This should give me...
3,613
Posted By UnknownGuy
Oh no, I am happy with my job, not into hacking....
Oh no, I am happy with my job, not into hacking. I have access to both hosts, need some command like netstat which will let me know the ports open from source to destination. I need to forward some...
3,613
Posted By UnknownGuy
Open ports from source to destination
Is there a way to find out all the ports open between source IP & destination IP in any way ?
5,960
Posted By UnknownGuy
Guys found the answer : I wanted to check file...
Guys found the answer : I wanted to check file size & if its bigger than 100kb need to zip it, all in one line.
Below is the answer, thanks for help.

find $LogFile -type f -size +100k -exec zip...
5,960
Posted By UnknownGuy
this solves the purpose. --- Post updated at...
this solves the purpose.

--- Post updated at 04:28 PM ---

Thanks vbe,

this solves the purpose
5,960
Posted By UnknownGuy
I can run a find /home/ -type f -size 6579c -exec...
I can run a find /home/ -type f -size 6579c -exec ls {} \; command to check file size & then run zip command to archive them but I don't want to run multiple commands, need something which does the...
5,960
Posted By UnknownGuy
Single line archive log files command if exceed certain limit in Linux
Hello Guys,

Is there a single line archive command to zip or tar log files which is larger than certain size limit ?

Do let me know if there is any.

Thanks
2,983
Posted By UnknownGuy
Hello Rudic, This looks better & is working...
Hello Rudic,

This looks better & is working better for my code. Thanks for the help.
7,182
Posted By UnknownGuy
The remote server which I am talking about is...
The remote server which I am talking about is highly important server so our security team doesn't allow any incoming connection (ssh or similar tools ) to this system, so need to avoid that.

But,...
2,983
Posted By UnknownGuy
Yes, I do know the difference but as I need to...
Yes, I do know the difference but as I need to run both commands without the dependency of other to run or fail, I had to make some adjustment.

Nevermind, I have tried to scp only one file & have...
2,983
Posted By UnknownGuy
I have used single '&' because I want to transfer...
I have used single '&' because I want to transfer both files irrespective of result of first transfer.

The idea is to send both files & if any of the transfer fails, trigger else statement that...
2,983
Posted By UnknownGuy
I need to transfer both the files & if both gets...
I need to transfer both the files & if both gets copied correctly, it should return success message, I had tried to use suggested pattern "if scp ... && scp ... ; then ... fi" but even though both...
2,983
Posted By UnknownGuy
ERROR is something like below. And variables...
ERROR is something like below. And variables doesn't have any error as without if statement, commands runs properly.
line 25: [: missing `]'
grep: ]: No such file or directory
+ echo ' One or more...
2,983
Posted By UnknownGuy
If statement to check file transfer
Hello Guys,

I am trying scp few file within if statement, but getting error, can someone please help to understand, what mistake I am making ?

if [ [ scp $StatusFile $user@$log02:$scppath |grep...
7,182
Posted By UnknownGuy
Check processes running on remote server
Hello Guys,

I need some help to find out if processes are running on remote server or not. I could do 'ssh' to do that but due to some security reasons, I need to avoid the ssh & get result from...
Showing results 1 to 18 of 18

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