Sponsored Content
Full Discussion: Progress reporting
Top Forums UNIX for Dummies Questions & Answers Progress reporting Post 36324 by Ypnos on Tuesday 27th of May 2003 11:32:51 AM
Old 05-27-2003
here's the crucial bit


if test -f /u/ttc/
then #File or directory exists so ask for confirmation

echo -n "Ready to begin copy, continue? [y/n]"; read choice
if [ "$choice" -eq y ] || [ "$choice" -eq Y]; then echo "Copying files"
cp -r $livecomp $copycomp
mv -r $livecomp $tempcomp

As you see, I'm not using a for loop...
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Reporting

I have to do a lot of reporting for the company that I work for and was wondering if anyone had suggestions for a way to create professional looking reports. I currently use Filepro so much that I rarely see the shell. Any help is appreciated. (3 Replies)
Discussion started by: Mike11
3 Replies

2. Shell Programming and Scripting

Reporting SU and Failedlogins

Hi:- I am working on an audit report that produces a monthly summary of account activity on a particular AIX host. I am struggling with su activity and failed logins as these tend to come back with more then a month's data. Is there a easy way that these files can be rotated/cleaned out on a... (1 Reply)
Discussion started by: janet
1 Replies

3. UNIX for Dummies Questions & Answers

SNMP time reporting

Hi, First post, please bare with me. I am currently using SNMP on Nagios to monitor Exim and all is running great with the exception to it picking up the date / time of the last Exim queue run. What I am hoping to achieve is for SNMP / Nagios to correctly pickup the difference between the... (1 Reply)
Discussion started by: theblueproject
1 Replies

4. Solaris

sar command not reporting

I am running Solaris 10 in a sparc environment. I have the sys crontab setup to use sar to gather data and report it. My sys crontab entry looks like this: 0,5,10,15,20,25,30,35,40,45,50,55 * * * 0-6 /usr/lib/sa/sa1 20,40 8-17 * * 1-5 /usr/lib/sa/sa1 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e... (2 Replies)
Discussion started by: RobSand
2 Replies

5. Shell Programming and Scripting

Disk space reporting

I need to accomplish the following task - I have a number of accounts for a number of applications that i deploy on a unix server. There are a number of directories for each account in /prod/apps directory. eg. For an account Application1 I have /prod/apps/Application1_1 /prod/apps/Application1_2... (4 Replies)
Discussion started by: niranjandighe
4 Replies

6. Solaris

Monitoring and Reporting Solutions

Hi, I am hunting for a low cost Monitoring & Reporting Tool for the SUN Environment. I have all and all SUN Environment with LDOMs, Zones. The monitoring Tool 1. Hardware failure. 2. Disk space and failure. 3. LDOMS,Zones. 4. CPU,Memory Utilization. 5. ping,URL Monitors 6. Send... (4 Replies)
Discussion started by: menonk
4 Replies

7. SCO

du and dfspace reporting

Hi, I am using SCO UNIX version 6.0.0 release 5. I am using du and df space to see the used space in the / partition. I am using du -k option to get count in 1024 k so that it directly makes kb. In dfspace I subtracted the used mb from total size mb which should be the used space and then... (40 Replies)
Discussion started by: dextergenious
40 Replies

8. UNIX for Advanced & Expert Users

Reporting last login details

Most of my Solaris 10 user accounts are generally 10 characters long. When I run the 'last' command the report only shows the first 8 characters so the information is not very helpful. How can I report the full 10 character user account. (1 Reply)
Discussion started by: PPOWER55
1 Replies

9. AIX

How to disable an error reporting ???

Hi A few days ago I attached an usb external disk to a server running AIX, then I removed it without typing any commands. Now, the server can't find the usb device and it keeps reporting the errors every 3 hours, like this 55479D40 0112080017 T H usbms0 ADDITIONAL INFORMATION... (2 Replies)
Discussion started by: bobochacha29
2 Replies
ppd_find_choice(3)					     Library Functions Manual						ppd_find_choice(3)

NAME
ppd_find_choice, ppd_find_marked_choice, ppd_find_option_by_keyword - set of functions for returning pointers to choices from PPD files. SYNOPSIS
#include <ppd.h> PpdChoice *ppd_find_choice (PpdOption *o, const char *choice); PpdChoice *ppd_find_marked_choice (PpdFile *ppd, const char *keyword); PpdOption *ppd_find_option_by_keyword (PpdFile *ppd, const char *keyword); DESCRIPTION
These three functions allow the programmer access options and choices within a PPD file. PpdChoice *ppd_find_choice (PpdOption *o, const char *choice); This function accepts two parameters. The first is a pointer to a PPD option structure and the second is the name of the choice to locate. PpdChoice *ppd_find_marked_choice (PpdFile *ppd, const char *keyword); This function accepts a valid PpdFile pointer (see ppd_file_new(3)) and a keyword or option name to locate in the PPD file. PpdOption *ppd_find_option_by_keyword (PpdFile *ppd, const char *keyword); This function accepts two parameters which are identical to those used when invoking the ppd_find_marked_choice() function. However, the ppd_find_option_by_keyword() function does not mark the designated option as being selected. RETURN VALUE
ppd_find_choice() Return a pointer to an option choice; NULL in the case of a failure ppd_find_marked_choice() Return the marked choice for the specified option; NULL in the case of a failure ppd_find_option_by_keyword() Return a pointer to the specified option; NULL in the case of a failure SEE ALSO
ppd_file_new(3), ppd_emit_to_file(3), ppd_file_free(3), ppd_get_num_conflicts(3), ppd_check_option_is_marked(3), ppd_get_page_length(3) AUTHOR
This man page was written by Gerald Carter <gcarter@valinux.com>. It was updated by Mark Fasheh <mfasheh@valinux.com> to reflect changes in libppd 0.5 Some of the code for these functions was originally part of the Common UNIX Printing System (CUPS). ppd_find_choice(3)
All times are GMT -4. The time now is 06:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy