IP connection Bash script issues


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers IP connection Bash script issues
# 1  
Old 04-24-2009
IP connection Bash script issues

Hello

I need assistance with a bash script that needs to tell me whether in the last "x" days (which is a variable) anyone connected to the xxxx IP (which is another variable).

Thank you!

Last edited by Melchiah; 04-24-2009 at 09:45 AM..
# 2  
Old 04-26-2009
It's not that difficult to write such script, but you need to tell us how do you query the module that holds the information for the connections, is this a log file ? Also, what OS is that ? What should be the script design - passing command line arguments to it, or opening and editing the variables within the script ?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SuSE

Connection is broken because of underlying network issues

Hi Guys, I have two databases where I copy archivelog files from server A to server B frequently...yesterday we did the VM upgrade now...I am struggling to copy/ship the files from server A to server B... I manually tested the file transfer but the big files, e.g 46M, stall. I can copy small... (2 Replies)
Discussion started by: Phuti
2 Replies

2. Shell Programming and Scripting

Telnet Bash Script (Connection closed by foreign host.)

Hello Everyone, My following script is giving me problems, when the SIP trunk goes down and the telnet session is started and just when the command is about to complete the connection is closed then script restarts. I have noticed that as soon the script types in "sys re" or "sys rebo" or... (6 Replies)
Discussion started by: jeetz
6 Replies

3. Shell Programming and Scripting

Bash Script Issues (If statement for file copying)

Writing a bash script for use with Geektool, pulls the battery info, and shuffles images around so that an Image geeklet can display the correct expression as the desktop background. (Eventually I intend to make it more intricate, based on more variables, and add more expressions) I'm extremely... (1 Reply)
Discussion started by: The_Ardly374
1 Replies

4. UNIX for Advanced & Expert Users

lftp connection issues

Hi guys, We are receiving fatal error while trying to use lftp client to connect to an external server using ftps protocol. It seems to connect but when I issue 'ls' command, it fails with below error: $ lftp -u user,pwd ftps://<URL>:990/Submit lftp user@URL:~> ls ls: Fatal error:... (0 Replies)
Discussion started by: nice_chapp
0 Replies

5. Shell Programming and Scripting

Unix bash script (mv issues);

Hey guys, I've registered here as I need urgent help. This is assignment for school and as you can see below I've completed the work. I'm simply stuck on one area. :wall: This script takes the first parameter (which is to be the new extension) and each parameter after that is a file... (1 Reply)
Discussion started by: Cynosure
1 Replies

6. Shell Programming and Scripting

Bash Script issues

So what i am trying to do is write a script that takes in any number of scrambeled words and unscrambles them. I have already addressed the issues of partial matches, exits silently if there are no matches, and finds words regardless of case that they were input. but while trying to get it so... (3 Replies)
Discussion started by: alindner
3 Replies

7. Shell Programming and Scripting

Bash script issues

Hi. The below part of my bash script kicks out the following error message: $ ./extract_eod_report_stats_new.sh 2010-04-23 ./extract_eod_report_stats_new.sh: line 204: syntax error near unexpected token `(' ./extract_eod_report_stats_new.sh: line 204: `TRANSACTIONS_RECEIVED_TOP=`grep... (6 Replies)
Discussion started by: Peter.Lovell
6 Replies

8. Shell Programming and Scripting

bash script to test network connection - please help

I want to test if my host can connect to any of the following 10 hosts (192.168.1.0 to 192.168.1.9) I didnt know which command i should use, so i chose ping. (i wonder if i should use tracepath or sth else) my code is the following: #!/bin/bash clear firstPart="192.168.1" maxNum="9" ... (2 Replies)
Discussion started by: shadow_boi
2 Replies

9. UNIX for Advanced & Expert Users

Exceed connection issues

I'm trying to use Exceed 7.1 to connect to a Solaris server (T2000, running Solaris 10). What are the settings that should be specified on Solaris to enable this connectivity to happen? I'm getting connection issues. Is there a type of service that needs to be running? If sombody can give a... (1 Reply)
Discussion started by: Sunguy222
1 Replies

10. UNIX for Dummies Questions & Answers

Bash Script to check Remote Host Connection

Hi all, Can anyone tell/guide me how to check remote host is up/running using bash script? Thanks. Zulfiqar (5 Replies)
Discussion started by: zulfikarmd
5 Replies
Login or Register to Ask a Question