Sponsored Content
Top Forums Shell Programming and Scripting Creating a Continuous File Reading-Executing Shell Script Post 302867849 by linuxlololol on Friday 25th of October 2013 06:19:52 AM
Old 10-25-2013
Thx mate i'll try to go along from there.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reading file names from a file and executing the relative file from shell script

Hi How can i dynamically read files names from a list file and execute them from a single shell script. Please help its urgent Thanks in Advance (4 Replies)
Discussion started by: anushilrai
4 Replies

2. Shell Programming and Scripting

executing scripts by reading names from a file

file.txt contains ------------------ sat1 1300 sat2 2400 sat3 sat4 500 I need to write a shell script that will output like the below #output sat1.ksh 1300 sat2.ksh 2400 sat3.ksh sat4.ksh 500 my try ------- #!/bin/ksh for i in `cat file.txt` (3 Replies)
Discussion started by: konark
3 Replies

3. Shell Programming and Scripting

Executing Multiple .SQL Files from Single Shell Script file

Hi, Please help me out. I have around 700 sql files to execute in a defined order, how can i do it from shell script (3 Replies)
Discussion started by: anushilrai
3 Replies

4. Shell Programming and Scripting

getting : No such file or directory while executing a shell script

Hi all, I am getting : No such file or directory while executing a shell script. But i have that corresponding file in the corresponding path. It also have executable rights. Please help me out in this Thanks in advance. Ananthi.U (7 Replies)
Discussion started by: ananthi_ku
7 Replies

5. Shell Programming and Scripting

file reading through shell script

For reading a file through shell script I am using yhe code : while read line do echo $line done<data.txt It reads all the line of that file data.txt. Content of data.txt looks like: code=y sql=y total no of sql files=4 a.sql b.sql c.sql d.sql cpp=n c=y total no of c files=1 (4 Replies)
Discussion started by: Dip
4 Replies

6. Shell Programming and Scripting

(Urgent):Creating flat file using sql script and sqlplus from UNIX Shell Script

Hi, I need help urgently for following issue. Pls help me to resolve this issue. I am calling sql script file(file1.sql) from UNIX Shell Script(script1.ksh) using sql plus and trying to create flat file that contains all records returned from SQL query in SQL script(file1.sql) I given... (6 Replies)
Discussion started by: praka
6 Replies

7. UNIX for Dummies Questions & Answers

UNIX script for reading a file and creating another file

Hi, I am a beginner in scripting...I have to do a script where I have to read a file which has list of job names, line by line and for every line execute a dsjob command to find the log details of the job and extract only the start time of the job, if it is greater than jan 01 2008 and create... (1 Reply)
Discussion started by: Vijay81
1 Replies

8. Shell Programming and Scripting

Creating and Executing a script of aliases in AIX

hi, I am trying to create a script in AIX (5.3 I think), then run it. here's what I have: /home/me $ vi first.aliases ... alias cdblah='cd /blah' alias cdho='cd /ho' alias ssr='sudo su - random' ~ ...end of first.aliases /home/me $ ./first.aliases /home/me $ ssr ksh: ssr: not found.... (2 Replies)
Discussion started by: heetertc
2 Replies

9. UNIX for Dummies Questions & Answers

C-Shell script help reading from txt file

I need to write a C-Shell script with these properties: It should accept two arguments on the command line. The first argument is the name of a file which contains a list of names, and the second argument is the name of a directory. For each file in the directory, the script should print the... (1 Reply)
Discussion started by: cerce
1 Replies

10. Shell Programming and Scripting

Compiling and Executing a Java File With a Shell Script

I'm trying to use a shell script to compile and execute a java file. The java classes are using sockets, so there is a client.java file and a server.java file, each with their own shell script. I also want to handle the command line arguments within the shell script, not the java classes. The... (1 Reply)
Discussion started by: britty4
1 Replies
PROGRESS(1)						    BSD General Commands Manual 					       PROGRESS(1)

NAME
progress -- feed input to a command, displaying a progress bar SYNOPSIS
progress [-ez] [-b buffersize] [-f file] [-l length] [-p prefix] cmd [args ...] DESCRIPTION
The progress utility opens a pipe to cmd and feeds an input stream into it, while displaying a progress bar to standard output. If no file- name is specified, progress reads from standard input. Where feasible, progress fstat(2)s the input to determine the length, so a time esti- mate can be calculated. If no length is specified or determined, progress simply displays a count of the data and the data rate. The options are as follows: -b buffersize Read in buffers of the specified size (default 64k). An optional suffix (per strsuftoll(3)) may be given. -e Display progress to standard error instead of standard output. -f file Read from the specified file instead of standard input. -l length Use the specified length for the time estimate, rather than attempting to fstat(2) the input. An optional suffix (per strsuftoll(3)) may be given. -p prefix Print the given ``prefix'' text before (left of) the progress bar. -z Filter the input through gunzip(1). If -f is specified, calculate the length using gzip -l. EXIT STATUS
progress exits 0 on success. EXAMPLES
The command progress -zf file.tar.gz tar xf - will extract the file.tar.gz displaying the progress bar as time passes: 0% | | 0 0.00 KiB/s --:-- ETA 40% |******** | 273 KiB 271.95 KiB/s 00:01 ETA 81% |*********************** | 553 KiB 274.61 KiB/s 00:00 ETA 100% |*******************************| 680 KiB 264.59 KiB/s 00:00 ETA If it is preferred to monitor the progress of the decompression process (unlikely), then progress -f file.tar.gz tar zxf - could be used. The command dd if=/dev/rwd0d ibs=64k | progress -l 120g dd of=/dev/rwd1d obs=64k will copy the 120 GiB disk wd0 (/dev/rwd0d) to wd1 (/dev/rwd1d), displaying a progress bar during the operation. SEE ALSO
ftp(1), strsuftoll(3) HISTORY
progress first appeared in NetBSD 1.6.1. The dynamic progress bar display code is part of ftp(1). AUTHORS
progress was written by John Hawkinson <jhawk@NetBSD.org>. ftp(1)'s dynamic progress bar was written by Luke Mewburn. BUGS
Since the progress bar is displayed asynchronously, it may be difficult to read some error messages, both those produced by the pipeline, as well as those produced by progress itself. BSD
June 6, 2007 BSD
All times are GMT -4. The time now is 07:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy