#!/usr/bin/perl
use POSIX qw(strftime);
my $file = shift @ARGV;
stat $file;
die "File $file does not exist or cannot be read: $!"
unless -f _ || -r _;
die "File $file cannot be stat'd: $!"
unless stat _;
# Calculate in seconds the time it was yesterday (24 hours ago) at 7pm.
my $_7pm_last_night = ( strftime "%s",(0,0,19,(localtime(time - 24*60*60))[3..8]));
# compare the file's mtime timestamp with that time and exit accordingly
exit ( (stat(_))[9] > $_7pm_last_night ? 0 : 1 );
# exits with 0 if the file exists and has been updated since 7pm, 1 otherwise
Last edited by otheus; 12-13-2011 at 12:53 PM..
Reason: first version didnt work
Hello,
Is there a way to trigger a Windows bat file or program on a different machine from a different UNIX server using KSC file?
I hope you can assist me with this.
Thanks! (0 Replies)
hi guys,
I have to ftp an empty text file dim_trigger.txt form 1 server to another. The target server is mtiftp and i have defined the username and password.
Below is the shellscript thats in a file called dim_trigger.ksh
#!/bin/ksh
#
# FTP Bo trigger
#
HOST= 'mtiftp'
USER=... (0 Replies)
Hi All,
i dont have any idea about perl scripting...
i need some suggestion so that i can put my effort to find out the solution:D
let me explain....one of my tedious task which will taken care by Unix shell script which i prepared.
its a kind of routine work that i am running the... (4 Replies)
hi,
i want to call unix script from transformations used in informatica mapping?
can we do it in any way? Please reply ASAP.
We cant use Storep procedure transformation
Thanks in Advance
nishith (0 Replies)
HI,
I want to trigger a UNIX command from a web browser page.
The web browser will have few steps which will generate the UNIX command and then it should connect to the UNIX box and fire that command.
Here we are using Sun Solaris UNIX.
Can you please suggest me how can i get... (6 Replies)
Hi Rockers,
I hope u r dng good one. I have a one question is in unix with informatica . I need a unix script to check whether particular file exists in the folder , If it means we have a informatica server , so we can start the informatica server by accessing that file. Every week we have... (0 Replies)
Guys,
I have a requirement.Please suggest the way i can :
A script is being used to generate a file and send a mail to a source team if the feed for informatica jobs have not reached the server.
If the file has not reached the server,the informatica jobs touch 0 byte file after 3 hours and... (2 Replies)
Hi I am trying to implement one program, where JAVA needs to trigger the backend UNIX script. Tried with options like
String cmdArray = {"/bin/ksh","-c","/SCRIPT_ABSOLUTE_PATH/sampleScript.ksh /FILE_ABSOLUTE_PATH Test_File.dat TEST E SFTP"}
When I trigger the script from front end with... (1 Reply)
Discussion started by: karumudi7
1 Replies
LEARN ABOUT XFREE86
tc-choke
TC(8) Linux TC(8)NAME
choke - choose and keep scheduler
SYNOPSIS
tc qdisc ... choke limit packets min packets max packets avpkt bytes burst packets [ ecn ] [ bandwidth rate ] probability chance
DESCRIPTION
CHOKe (CHOose and Keep for responsive flows, CHOose and Kill for unresponsive flows) is a classless qdisc designed to both identify and
penalize flows that monopolize the queue. CHOKe is a variation of RED, and the configuration is similar to RED.
ALGORITHM
Once the queue hits a certain average length, a random packet is drawn from the queue. If both the to-be-queued and the drawn packet belong
to the same flow, both packets are dropped. Otherwise, if the queue length is still below the maximum length, the new packet has a config-
urable chance of being marked (which may mean dropped). If the queue length exceeds max, the new packet will always be marked (or
dropped). If the queue length exceeds limit, the new packet is always dropped.
The marking probability computation is the same as used by the RED qdisc.
PARAMETERS
The parameters are the same as for RED, except that RED uses bytes whereas choke counts packets. See tc-red(8) for a description.
SOURCE
o R. Pan, B. Prabhakar, and K. Psounis, "CHOKe, A Stateless Active Queue Management Scheme for Approximating Fair Bandwidth Alloca-
tion", IEEE INFOCOM, 2000.
o A. Tang, J. Wang, S. Low, "Understanding CHOKe: Throughput and Spatial Characteristics", IEEE/ACM Transactions on Networking, 2004
SEE ALSO tc(8), tc-red(8)AUTHOR
sched_choke was contributed by Stephen Hemminger.
iproute2 August 2011 TC(8)