Sponsored Content
Top Forums Shell Programming and Scripting why read line skips some lines... Post 302138903 by bluemoon1 on Wednesday 3rd of October 2007 06:46:00 PM
Old 10-03-2007
Guru vino & tomas:-)

What you say seems to make sense to me- that specific pkg takes the longest of all. I made a workaround to make it the last one to be installed- however, I know I have to put into some safety measure in between of any 2 pkgs installations based on what you said.

One thing I have to mention, I do have controls in the loop I omitted earlier just to simplify the example. I validate entries in the line & check returning from the installpkg commond- pkgadd - etc, but there was no error whatsoever.

invoking them in the backgroud may work, but I need to display & save the screen shots of the whole process to a log, as well, some pkgs have interactive prompts.

Perhaps the command pkgadd is asynchronous?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Read lines till a blank line is encountered

Hi, I have reached at a specified offset from the start of file. My requirement is that I want to read only those lines, which have the string READ / ALTER / UPDATE. As soon as, none of these literals are found in the subsequent line, I want to stop reading. Is there any feature of grep which... (1 Reply)
Discussion started by: saurabhsinha23
1 Replies

2. Shell Programming and Scripting

cat file1 read line-per-line then grep -A 15 lines down in fileb

STEP 1 # Set variable FILE=/tmp/mainfile SEARCHFILE =/tmp/searchfile # THIS IS THE MAIN FILE. cat /tmp/mainfile Interface Ethernet0/0 "outside", is up, line protocol is up Hardware is i82546GB rev03, BW 100 Mbps Full-Duplex(Full-duplex), 100 Mbps(100 Mbps) MAC address... (6 Replies)
Discussion started by: irongeekio
6 Replies

3. Shell Programming and Scripting

bash: read file line by line (lines have '\0') - not full line has read???

I am using the while-loop to read a file. The file has lines with null-terminated strings (words, actually.) What I have by that reading - just a first word up to '\0'! I need to have whole string up to 'new line' - (LF, 10#10, 16#A) What I am doing wrong? #make file 'grb' with... (6 Replies)
Discussion started by: alex_5161
6 Replies

4. Shell Programming and Scripting

Remote script skips "read" command

This script is supposed to display a file ( crontab ), ask the user if they wish to update the file, then it goes through an update routine. #!/bin/bash FILE=/etc/crontab tail -5 $FILE echo -n "Does crontab need updating" read HOURS ...routines ....etc... Runs locally... (8 Replies)
Discussion started by: Bubnoff
8 Replies

5. UNIX for Dummies Questions & Answers

Foreach loop that skips the header line of a file (csh)

Hello all, I'm working on a foreach loop to compare a couple sets of data. However, each datafile includes a header row. I'm wondering if it is possible to tell the foreach loop to skip the first line of data. I've been using the basic code as follows: foreach line ("`file.csv`") set... (2 Replies)
Discussion started by: meteorologistks
2 Replies

6. Shell Programming and Scripting

read one line file and separate into multiple lines

I have one long line text with semicolon used as separator between values in that line. Now, I want to separate the line into multiple line right after every 29th field. example input line: ... (2 Replies)
Discussion started by: erlanq
2 Replies

7. Shell Programming and Scripting

read one line file and separate into multiple lines

I have one long line text with semicolon used as separator between values in that line. Now, I want to separate the line into multiple line right after every 29th field. example input line: ... (1 Reply)
Discussion started by: erlanq
1 Replies

8. Shell Programming and Scripting

Read line with particular number of lines

Hi all, I have a file sample.txt abc asd adf daf adw add adv wdf I want to control the number of lines to read Like if i give input as ./script_name 2 5 required output asd adf daf (2 Replies)
Discussion started by: krux_rap
2 Replies

9. Shell Programming and Scripting

Need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line...

Hello, I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be: SRVXPAPI001 ERRO JUN24 07:28:34 1775 REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F ... (8 Replies)
Discussion started by: Ferocci
8 Replies

10. Shell Programming and Scripting

Read the file line by line and do something with lines

I have a file file_name_O.txt The file can have different number of other files names or nothing I will check cnt=`wc -l file_name_0.txt` if ;then exit 1 fi Now I have to start checking file names, i.e. read txt file line by line. If amount of ,lines equal 1, I can... (4 Replies)
Discussion started by: digioleg54
4 Replies
repair_packages(8)					    BSD System Manager's Manual 					repair_packages(8)

NAME
repair_packages -- verify or repair filesystem permissions and flags for packages. SYNOPSIS
repair_packages [arguments] DESCRIPTION
repair_packages is used by Disk Utility to verify or repair permissions on installed packages. ARGUMENTS
--volume Perform all operations on the specified volume or home directory. The root volume '/' will be used if unspecified. --list-standard-pkgs Output the list of package-id strings corresponding to receipts in the installer's receipt database that will be verified or repaired by the --standard-pkgs flag. --verify Verify the specified package(s). --repair Repair the specified package(s). --pkg package-id Add the specified package to the list of packages to verify or repair. --standard-pkgs Add the standard packages to the list of packages to verify or repair. Use --list-standard-pkgs to view this list. --output-format # Use a special output format selected by #. Different output formats may be optimized for human or machine readability. The default output-format is '0', and is a verbose, human-readable format. NOTES
repair_packages only runs on 10.6 or later systems. To verify or repair permissions on earlier systems, reboot with a Tiger or Leopard system disk and verify or repair permissions with the repair_packages version on that disk. SEE ALSO
pkgutil(1) http://lists.apple.com/archives/installer-dev BUGS
repair_packages does not verify file contents or restore missing files; It can only verify or repair filesystem permissions. Mac OS June 2, 2019 Mac OS
All times are GMT -4. The time now is 01:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy