Sponsored Content
Full Discussion: Constant mirroring
Top Forums Shell Programming and Scripting Constant mirroring Post 302240306 by sstevens on Thursday 25th of September 2008 11:26:04 AM
Old 09-25-2008
Constant mirroring

I'm not sure how to best explain what I'd like to do, so let me give an example. I used to work in a department that deals with internet security. This department had an "internal" website (only people in the building can get on it) and an "external" website (anyone in the world can get on it -- like unix.com). One day I was told that someone was having trouble FTP'ing a file to the internal server. All he wanted to do was transfer the file between two computers -- he was going to FTP it up with one computer, then get it down from the other computer. He ended up FTP'ing the file to the external server to get the job done. It was deleted from the external server in a matter of minutes.

Apparently, the file he uploaded was "secret information" and it was determined by log files and stuff that someone else had downloaded it in those few minutes it was up there. It was also determined that the person who downloaded the file was actually a script that was constantly mirroring the server.

I now work somewhere else, and we have a number of websites. The management wants us to have an RSS feed (they actually don't even know what RSS is -- they just like to say it) that gets all the new stuff from all of our websites. Instead of making changes to each website, I thought it would be cool to have this same type of script that automatically grabs new information within minutes of it being posted.

I hope that makes sense. Sorry for story-time.

And no, I'm not the person that FTP'd the stuff. I wasn't cool enough to have access to "secrets". Smilie
 

7 More Discussions You Might Find Interesting

1. Programming

File descriptor constant

I have a requirement to close all the file descriptors from 3 to 1024 for a particular application. Right now, this is how I do it .. for ( int i = 3 ; i <= 1024; ++i ) close(i); The change I am looking at is, I want to do away with the number 1024 and replace it with a constant which... (4 Replies)
Discussion started by: vino
4 Replies

2. AIX

AIX Constant Rebooting

IBM has replaced all parts in the system 3 times. Had electrician check to make sure the dedicated electrical circuit was good. Made sure the server rack was grounded, but AIX keeps shutting down when everyone is on the system. Reloaded AIX on the system. If the system is left alone it will stay... (4 Replies)
Discussion started by: AIXNEWBEE
4 Replies

3. Programming

'strlen' of a constant string

In a declaration, I have: const char comment_begin = "<!--"; const char comment_end = "-->"; const int comment_begin_len = strlen(comment_begin); const int comment_end_len = strlen(comment_end); When I compile, I get the warnings: emhttpc.c:64: warning: initializer element is not... (10 Replies)
Discussion started by: cleopard
10 Replies

4. Shell Programming and Scripting

while infinite loop_sockets constant

Hello Every one, it's requiered to create 'n' number of sockets constant for a hour time. i had my own script to create sockets using this i was able to create sockets and sendind data but using the tool i can maintain 'n' number of sockets for 5 minutes only after sockets are getting reduced to... (1 Reply)
Discussion started by: mannam srinivas
1 Replies

5. Solaris

Constant disturbing messages????

Hi friends, I am new to Solaris, I have just managed to install Solaris 10 under VirtualBox. As I use the system, I constantly get some very disturbing error messages on my screen, I hope you will help me remove them. Messages are # syslogd: line 24: WARNING: loghost could not be resolved ... (6 Replies)
Discussion started by: gabam
6 Replies

6. Programming

String Constant C

I wonder string constant exists permanently or temporary. For example, printf("hello, world"); the function printf access to it is through a pointer. Does it mean storage is allocated for the string constant to exist permanently in memory? :confused: (4 Replies)
Discussion started by: kris26
4 Replies

7. Debian

LM 17.3 xfce constant lagging

I'm using LM 17.3x LIVE. Have constant and sometimes, severe lagging issues. Problems started when I "upgraded" to 18.3x. I tried 5 other distros all with the same issues. Went back to 17.3 and , alas, the problem followed. Found this: sudo gedit /etc/sysctl. conf vm. swappiness = 15, but all it... (4 Replies)
Discussion started by: 69Rixter
4 Replies
std::tr1::__detail::__numeric_constants< _Tp >(3cxx)					      std::tr1::__detail::__numeric_constants< _Tp >(3cxx)

NAME
std::tr1::__detail::__numeric_constants< _Tp > - SYNOPSIS
Static Public Member Functions static _Tp __1_pi () throw () static _Tp __2_sqrtpi () throw () static _Tp __euler () throw () static _Tp __gamma_e () throw () static _Tp __lnpi () throw () static _Tp __pi () throw () static _Tp __pi_2 () throw () static _Tp __pi_3 () throw () static _Tp __pi_4 () throw () static _Tp __sqrt1_2 () throw () static _Tp __sqrt2 () throw () static _Tp __sqrt3 () throw () static _Tp __sqrtpio2 () throw () Detailed Description template<typename _Tp>struct std::tr1::__detail::__numeric_constants< _Tp > A structure for numeric constants. Definition at line 60 of file special_function_util.h. Member Function Documentation template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__1_pi () throw () [inline], [static] Constant $ 1 / i $. Definition at line 75 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__2_sqrtpi () throw () [inline], [static] Constant $ 2 / t(i) $. Definition at line 78 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__euler () throw () [inline], [static] Constant Euler-Mascheroni $ e $. Definition at line 99 of file special_function_util.h. Referenced by std::tr1::__detail::__log_gamma_lanczos(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__gamma_e () throw () [inline], [static] Constant Euler's constant $ mma_E $. Definition at line 96 of file special_function_util.h. Referenced by std::tr1::__detail::__expint_E1_series(), std::tr1::__detail::__expint_Ei_series(), std::tr1::__detail::__expint_En_series(), std::tr1::__detail::__hyperg_reflect(), and std::tr1::__detail::__psi_series(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__lnpi () throw () [inline], [static] Constant $ (i) $. Definition at line 93 of file special_function_util.h. Referenced by std::tr1::__detail::__log_gamma(), and std::tr1::__detail::__sph_legendre(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__pi () throw () [inline], [static] Constant $ i $. Definition at line 63 of file special_function_util.h. Referenced by std::tr1::__detail::__airy(), std::tr1::__detail::__bessel_ik(), std::tr1::__detail::__bessel_jn(), std::tr1::__detail::__ellint_1(), std::tr1::__detail::__ellint_2(), std::tr1::__detail::__ellint_3(), std::tr1::__detail::__psi(), std::tr1::__detail::__riemann_zeta(), and std::tr1::__detail::__riemann_zeta_glob(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__pi_2 () throw () [inline], [static] Constant $ i / 2 $. Definition at line 66 of file special_function_util.h. Referenced by std::tr1::__detail::__comp_ellint_1_series(), std::tr1::__detail::__comp_ellint_2_series(), and std::tr1::__detail::__poly_laguerre_large_n(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__pi_3 () throw () [inline], [static] Constant $ i / 3 $. Definition at line 69 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__pi_4 () throw () [inline], [static] Constant $ i / 4 $. Definition at line 72 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__sqrt1_2 () throw () [inline], [static] Constant $ 1 / sqrt(2) $. Definition at line 90 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__sqrt2 () throw () [inline], [static] Constant $ t(2) $. Definition at line 81 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__sqrt3 () throw () [inline], [static] Constant $ t(3) $. Definition at line 84 of file special_function_util.h. Referenced by std::tr1::__detail::__airy(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__sqrtpio2 () throw () [inline], [static] Constant $ t(i/2) $. Definition at line 87 of file special_function_util.h. Referenced by std::tr1::__detail::__sph_bessel_ik(), and std::tr1::__detail::__sph_bessel_jn(). Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Thu Aug 2 2012 std::tr1::__detail::__numeric_constants< _Tp >(3cxx)
All times are GMT -4. The time now is 05:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy