01-13-2009
How to check site access in shell script
Hello every one,
I have a little issue that has been killing me now for the past couple of days, I have tried to find solutions online, but its been hard to, ok here it goes...
I have created a site that is based on amount of user that have access at a time, based on cookie. So if the browser is closed, I am able to remove user from my database, however, when the pc freezes or pc just shuts down, I can't tell the database that user has been removed.
I am looking for a solution via shell if possible, maybe based on the user ip, shell checks database and checks if this ip is active, and if not the user is removed from database, then I can add to cron job.
Any help, I would be gratefull thank you
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am writting a shell script which will pull a list files (mentioned in one file 1.txt) from external FTP site (for ex: ftp://abcd.efghijk.com/). The 1.txt is in my local unix directory. I have username and password to connect the external FTP site.
Also before I pull the files, I need... (0 Replies)
Discussion started by: spatra
0 Replies
2. Shell Programming and Scripting
Hi All,
I am using below shell script using SQL*Plus to query the MAX(SEQUENCE#) from both databases V$LOG_HISTORY view.If the STANDBY appears to be falling behind by - 2, then alert mail should be sent...
How could I achieve it with improving the below script.
#!/usr/bin/ksh
... (0 Replies)
Discussion started by: a1_win
0 Replies
3. Shell Programming and Scripting
Hi All,
OS:AIX 5.3 L
My shell script using ssh remains connected at primary site and ssh doesn't get disconnected.What should be typed and where in the shell script below to do it.
Shell script
========
#!/usr/bin/ksh
v_standby=`sqlplus -s /nolog <<END
@standby.sql
END`
echo... (5 Replies)
Discussion started by: a1_win
5 Replies
4. Linux
Hey everyone, my wife has purchased a bundle package of a bunch of images from a site, and now has to download each one of them manually. There are about 500 downloads, and it's quite a hassle to browse to each page and download them all individually.
I would like to write a shell script to... (2 Replies)
Discussion started by: paqman
2 Replies
5. IP Networking
Setup a site to site VPN between two cisco routers.
One of the site locations is unable to access ports such as https://example.com:9001
How do I let them go into port 9001?
They can ssh, ftp, telnet and everything else.
Is this a VPN issue or ACL access issue?
I put
permit ip host... (0 Replies)
Discussion started by: photon
0 Replies
6. UNIX and Linux Applications
hi there
im currently in the process of creating a website for use basically within our org. im using a os x machine and installed MAMP - which includes Apache, mysql... the site will be used by techs to primarily install pkgs files onto os x devices. i would like to have buttons or hyperlinks... (2 Replies)
Discussion started by: sheshe
2 Replies
7. UNIX for Advanced & Expert Users
Can someone please give me the conf file line to allow access to myexample.com and only that site, and only through http and https?
So far I have only that site accessible via http, but all https sites are opened.
Squid 3.1 on Cent 6
---------- Post updated at 12:06 PM ---------- Previous... (0 Replies)
Discussion started by: glev2005
0 Replies
8. IP Networking
Hi all
I need help with a set of iptables rules that would allow a portion of a bank of ipaddresses acces to only one or two named wbsites.
Please advise
Thank You
Ed (3 Replies)
Discussion started by: wa1ed
3 Replies
9. Post Here to Contact Site Administrators and Moderators
Hello MODs/Admins,
Could you please help me here as from last 6 to 7 days I(and checked with my fellow friends too) am not able to access unix.com site at all. It is very very slow, it never loads completely. Even I checked with different people and different computers it results same only,... (8 Replies)
Discussion started by: RavinderSingh13
8 Replies
uupath(1) General Commands Manual uupath(1)
NAME
uupath, mkuupath - access and manage the pathalias database
SYNOPSIS
pathsfile] mailaddress
pathsfile
DESCRIPTION
The commands, including and are targeted for removal from HP-UX; see the below.
provides electronic message routing by expanding a simple UUCP address into a full UUCP path (see uucp(1)). For example, could be expanded
into
expands an address by parsing mailaddress for the dominant host (see below) and looking up the host in the appropriate database (see
pathalias(1)). If the host is found in the database, the expanded address is written to the standard output. If the host is not found,
writes the original address to the standard output and returns an exit status of 1. expects mailaddress to be in UUCP format (hostor
ARPANET format (user@host).
The option opens the database based on pathsfile rather than the default database based on This database must be a database created by con-
sisting of the two files and
The dominant host is the left-most UUCP host in mailaddress. If no UUCP host is found (no is in the address), assumes that the address is
in the simple ARPANET format user@host. If the address does not match either format, writes the original address to the standard output
and returns an exit status of 1.
constructs a mail routing database by using the pathsfile data file obtained from (see pathalias(1)). as input. The recommended pathsfile
location is because this is the default database used by The database files and are created by If these files already exist, they must be
removed prior to running
The option specifies verbose mode, which writes a line to the standard output for each entry written to the database.
DIAGNOSTICS
returns an exit status of 1 and writes the original mailaddress to the standard output if the address is not found or is incorrectly for-
matted. returns an exit status of 2 and prints a diagnostic message if the database files are not accessible, or if improper parameters
are given. Otherwise, returns an exit status of 0.
If the database files and already exist prior to running the message is displayed. These files must be removed before running
WARNINGS
Use of commands, including and is discouraged because they are targeted for removal from HP-UX. Use ftp(1) or rcp(1) instead.
AUTHOR
was developed by University of California, Berkeley.
FILES
SEE ALSO
pathalias(1), uucp(1).
TO BE OBSOLETED uupath(1)