Sponsored Content
Top Forums UNIX for Advanced & Expert Users Update file from a given wrapper Post 302536738 by vibhor_agarwali on Wednesday 6th of July 2011 06:47:39 AM
Old 07-06-2011
Update file from a given wrapper

Hello Friends,

I am trying to generate a status file which will be updated when users run a given shell wrapper.

Above is pretty straight forward.

Since the program is open to all users, the status file should have open access for all.
That has the inherent loop hole of anybody modifying it externally as well.

Looking to restrict the status file to get updates when run only from the given program.
All options welcome.

Thanks in advance.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Tcp wrapper

I installed tcp wrappers version 7.6 and modify my inetd.conf file from ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd to ftp stream tcp6 nowait root /usr/local/bin/tcpd /usr/sbin/in.ftpd -l created /etc/hosts.allow file and modify it... (19 Replies)
Discussion started by: hassan2
19 Replies

2. UNIX for Dummies Questions & Answers

What is wrapper script and how to write

hi guys, I have a requirement to run a script 4 times with different parameter values. the 4 jobs have to run parallely which actually access different data of same table and deletes. how can i achieve this.................? Thanks in advance (1 Reply)
Discussion started by: chiru
1 Replies

3. UNIX for Dummies Questions & Answers

What is a wrapper script

I tried searching the forum ,,but couldn't locate ..Can anyone give me a link or some information about wrapper script. (1 Reply)
Discussion started by: thana
1 Replies

4. UNIX for Dummies Questions & Answers

Writing a wrapper

Hi everyone, I have this custom sudo package over which I want to write a wrapper using PERL. The wrapper will do some pre-work and then call the regular sudo package from within itself. But I am facing a peculiar problem here. Once invoked, I am able to do the pre-work from within the... (1 Reply)
Discussion started by: garric
1 Replies

5. Shell Programming and Scripting

Help with a wrapper script not working

Hello, I have the below wrapper script: #!/usr/bin/perl -w if ($^O eq 'MSWin32' ) { $subnet = 'c:\path\to\subnet.txt'; } else { $subnet = '/opt/qip/wrapper-del-sub'; } open FH1, 'jj-deleted-subnets.txt' or die "Can't open 'jj-deleted-subnets.txt' ... (0 Replies)
Discussion started by: richsark
0 Replies

6. Shell Programming and Scripting

Count script wrapper help

I have this a code that I got help with for another task. I since tried to modify it to work on this task. I need someones expertise to modify it slightly and I am not sure where to start or yet fully understand the logic. I am trying to get a script to read my m-names.txt which has lots... (19 Replies)
Discussion started by: richsark
19 Replies

7. UNIX for Dummies Questions & Answers

What is a wrapper?

Hi, I am a dummy and hear to the computation guys telling me, "Oh! that is easy, you just write a wrapper to do all that bunch of stuff!" :cool: Could someone tell me what is a wrapper? :rolleyes: The only one I know is Cling-Wrap for sandwiches. A small elegant example would be very... (1 Reply)
Discussion started by: genehunter
1 Replies

8. UNIX for Dummies Questions & Answers

Linux printer wrapper

Have an HP 1000 j110a on Slackware 13.0. Is there a wrapper I could use with or without CUPS to allow me to print to this device? I am aware of HPLIP and HPIJS both of which are included in 13.37 release I will be ordering but need something until it is delivered. (0 Replies)
Discussion started by: slak0
0 Replies

9. Shell Programming and Scripting

problem with the my wrapper script

Hi friends, i am working in ksh88. i am running the follwing wapper script in background to run two jobs parallely((eg nohup wrapper.ksh &):: wrapper.ksh ######################## #!/bin/ksh nohup ./pii_insert.ksh /nsing83/p2/test & nohup ./pii_update.ksh... (1 Reply)
Discussion started by: neelmani
1 Replies

10. Shell Programming and Scripting

Help needed on wrapper script

Hi Gurus, I need to build a wrapper script which will be passing the loading date and the data file name (provides option to the user to load a single data file or load all the data files) to the actual loader data_load.ksh to load in the database. 1. I want to execute the loader script... (6 Replies)
Discussion started by: express14
6 Replies
USCAN-COMPONENTS(1p)					User Contributed Perl Documentation				      USCAN-COMPONENTS(1p)

NAME
uscan-components - wrapper around uscan for package and components SYNOPSIS
uscan-components [options] DESCRIPTION
"uscan-components" is a wrapper around "uscan" for packages using "dh_components". Firstly it will check that both the package and all the components have watch files; and will return an error if they do not. Then it will run uscan on the main watch file. If that downloads something it will run uscan on each of the components. It accepts a number of uscan options all of which are passed onto to each invocation of uscan. OPTIONS
--upgrade --no-upgrade By default the current versions of the various components will be downloaded. This resolves into --force-download and either --download-current-version or --upstream-version for the main and component tarballs respectively. The current versions of the components are stored in the files: "debian/components/"comp"/version". If the --upgrade option is applied then instead the latest version will be requested and the version files updated accordingly. --dry-run If set no actual uscan will not actually be called but those that might be will be listed. --help Prints a brief help message and exits. --man Prints the manual page and exits. --verbose --no-verbose These options simulate the verbosity flag being passed to "uscan". The actual invocations must always be verbose as the information is required to correctly rename the component files. However the output is not passed back to the user if verbosity is turned off. --report --report-status --pasv --no-pasv --timeout --debug --user-agent, --useragent All of the these arguments are passed straight to each uscan invocation. FILES
For each component the watch file is assumed to be in "debian/components/"component"/watch" and the component version is maintained in "debian/components/"component"/version". SEE ALSO
uscan(1) AUTHOR
Nicholas Bamber <nicholas@periapt.co.uk> perl v5.12.4 2011-11-05 USCAN-COMPONENTS(1p)
All times are GMT -4. The time now is 05:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy