Sponsored Content
Top Forums Shell Programming and Scripting Avoid locking between two files: Post 302862145 by gnnsprapa on Thursday 10th of October 2013 08:02:50 AM
Old 10-10-2013
@jim_mcnamara::--i am using Windows OS but connected to LINUX server to write n execute my shell scripts...so i guess i need a code corresponds to LINUX OS...

---------- Post updated at 07:02 AM ---------- Previous update was at 06:57 AM ----------

@RudiC::
well i am using cron jobs to run my script.. i have one load_cdr script which loads all files in diff modules to table...actually i dont want to put lock on table rather i need something like if A module file and B module File are interdependent then my script should run first A file and wait till it completes and then B file should execute...

So as per my understanding if i put some lock while reading module A file and if B module File comes into the picture my script will go in sleep mode till the lock on Module A file gets remove...smthin like that..but i am not getting how to write this into unix script..

TIA
 

9 More Discussions You Might Find Interesting

1. Ubuntu

Avoid creating temporary files on editing a file in Ubuntu

Hi, My ubuntu flavor always create temporary files having filename followed by ~ on editing. For eg: if I am editing a file called "sip.c", automatically a temporary (bkup) file is getting created with the name "sip.c~". How to avoid this file creation? (7 Replies)
Discussion started by: royalibrahim
7 Replies

2. Programming

What is the proper way to combine C++ files (with g++) to avoid link (ld) errors?

Problem background: gcc v 4.1 2 .cpp files, 2 .h files Files: main.cpp a.cpp a.h b.h Organization: main.cpp includes a.h (because it calls a.cpp code) a.cpp includes a.h a.h includes b.h (because a class in a.h uses a b.h class) There is no inheritance between a.h or b.h or any of... (1 Reply)
Discussion started by: johnqsmith
1 Replies

3. Shell Programming and Scripting

Avoid files being archived

hi all, i want to write a shell script which can automatically touch my all files within a folder in an interval of 90 days ...so that i can avoid them being archived. I don't want to manually touch the all files instead i want an automated shell script to do this. Thanks in advance, Om (3 Replies)
Discussion started by: koti
3 Replies

4. Shell Programming and Scripting

How to Avoid intermediate files when pipe does nt work

problem with piping one output to another.Would like to avoid the intermediate file creation.The piping does nt work on places where files have been created and goes in an endless loop. sed -e "s/^\.\///g" $LINE1| sed -e "s/_\(\)/kkk\1/g" > $file1 tr -s '_' ' ' < $file1| \ sort -n -k... (1 Reply)
Discussion started by: w020637
1 Replies

5. Shell Programming and Scripting

How to avoid duplication within 2 files?

Hi all, Actually 2 files are there - file1, file2. file1 contains ---> london mosco america russia mosco file2 contains --> europe india japan mosco england london Question is I want to print all the city names without duplication cities in those... (10 Replies)
Discussion started by: balan_mca
10 Replies

6. UNIX for Advanced & Expert Users

Samba - prevent locking of selected files over network?

I have a samba server which is serving a mixture of files. One main application uses a data file and creates a temporary working execution file at startup and holds that temp execution file open for the duration of the program's execution (but doesn't use the file at all after initial startup). ... (0 Replies)
Discussion started by: humbletech99
0 Replies

7. Shell Programming and Scripting

Joining 3 AWK scripts to avoid use "temp" files

Hi everyone, Looking for a suggestion to improve the below script in which I´ve been working. The thing is I have 3 separated AWK scripts that I need to apply over the inputfile, and for scripts (2) and (3) I have to use a "temp" file as their inputfile (inputfile_temp and inputfile_temp1... (2 Replies)
Discussion started by: cgkmal
2 Replies

8. Ubuntu

Avoid typing long filenames in terminal, shortcut for selecting files?

You probably know the answer to this, because I know it exists. I have super long filenames with md5 hashes and I sucks to type the whole hash in the console. Because... just because :P What is the shortcut for selecting a file in the current directory? Like you get a sort of loop through the... (1 Reply)
Discussion started by: hellfire1
1 Replies

9. AIX

How to avoid errors when moving files in a bff?

I am building a bff using mkinstallp. My template file is : Package Name: svr_exForum Package VRMF: 7.2 Update: N Fileset Fileset Name: svr_exForum.rte Fileset VRMF: 7.2 USRLIBLPPFiles Pre-installation Script: /lppdir/lpp/exForum/F_pre_i ... (2 Replies)
Discussion started by: kevinl
2 Replies
WebService::YouTube::Feeds(3pm) 			User Contributed Perl Documentation			   WebService::YouTube::Feeds(3pm)

NAME
WebService::YouTube::Feeds - Perl interface to YouTube RSS Feeds VERSION
This document describes WebService::YouTube::Feeds version 1.0.3 SYNOPSIS
use WebService::YouTube::Feeds; my $feeds = WebService::YouTube::Feeds->new( { ua => '...' } ); my @videos = $feeds->tag($tag); my @videos = $feeds->user($user); my @videos = $feeds->recently_added; my @videos = $feeds->recently_featured; my @videos = $feeds->top_favorites; my @videos = $feeds->top_rated; my @videos = $feeds->most_discussed_month; my @videos = $feeds->most_discussed_today; my @videos = $feeds->most_discussed_week; my @videos = $feeds->top_viewed; my @videos = $feeds->top_viewed_month; my @videos = $feeds->top_viewed_today; my @videos = $feeds->top_viewed_week; DESCRIPTION
This is a Perl interface to YouTube RSS Feeds. See About RSS <http://youtube.com/rssls> for details. SUBROUTINES
/METHODS new( \%fields ) Creates and returns a new WebService::YouTube::Feeds object. %fields can contain parameters enumerated in "ACCESSORS" section. parse_rss($rss) Parses RSS and returns the result. $rss should be an object that XML::Simple can understand. tag( $tag ) Returns an array of WebService::YouTube::Video object. $tag is a keyword string separated by a space. See <http://youtube.com/rssls> for details. user( $user ) Returns an array of WebService::YouTube::Video object. $user is an username. See <http://youtube.com/rssls> for details. recently_added( ) Returns an array of WebService::YouTube::Video object. See <http://youtube.com/rssls> for details. recently_featured( ) Returns an array of WebService::YouTube::Video object. See <http://youtube.com/rssls> for details. top_favorites( ) Returns an array of WebService::YouTube::Video object. See <http://youtube.com/rssls> for details. top_rated( ) Returns an array of WebService::YouTube::Video object. See <http://youtube.com/rssls> for details. most_discussed_month( ) Returns an array of WebService::YouTube::Video object. See <http://youtube.com/rssls> for details. most_discussed_today( ) Returns an array of WebService::YouTube::Video object. See <http://youtube.com/rssls> for details. most_discussed_week( ) Returns an array of WebService::YouTube::Video object. See <http://youtube.com/rssls> for details. top_viewed( ) Returns an array of WebService::YouTube::Video object. See <http://youtube.com/rssls> for details. top_viewed_month( ) Returns an array of WebService::YouTube::Video object. See <http://youtube.com/rssls> for details. top_viewed_today( ) Returns an array of WebService::YouTube::Video object. See <http://youtube.com/rssls> for details. top_viewed_week( ) Returns an array of WebService::YouTube::Video object. See <http://youtube.com/rssls> for details. ACCESSORS ua LWP::UserAgent object DIAGNOSTICS
CONFIGURATION AND ENVIRONMENT
WebService::YouTube::Feeds requires no configuration files or environment variables. DEPENDENCIES
HTTP::Date, LWP::UserAgent, XML::Simple, WebService::YouTube::Util, WebService::YouTube::Video INCOMPATIBILITIES
None reported. BUGS AND LIMITATIONS
No bugs have been reported. Please report any bugs or feature requests to "bug-webservice-youtube@rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-YouTube>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. AUTHOR
Hironori Yoshida <yoshida@cpan.org> LICENSE AND COPYRIGHT
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. perl v5.10.1 2010-08-01 WebService::YouTube::Feeds(3pm)
All times are GMT -4. The time now is 03:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy