Sponsored Content
Full Discussion: Copy or Move problem
Top Forums Shell Programming and Scripting Copy or Move problem Post 302554121 by sraj142 on Saturday 10th of September 2011 05:52:25 AM
Old 09-10-2011
Hi Cero,

I have tried your advice, but the program is still falling into the while loop while the file is not running... See the following. I guess, the path to my program returned by fuser may causing the problem with the while loop.

108 [shivalpl1] dbadm % fuser /home/dbadm/myprog
/home/dbadm/myprog:

109 [shivalpl1] dbadm % prog
/home/dbadm/myprog:
Still running
/home/dbadm/myprog:
Still running
/home/dbadm/myprog:
^C

Regards
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to copy/move folder on XP to Solaris?

I have created a folder on C:\images\Raffles.jpg on my PC, and I like to copy or move to Solaris server. How can I do that? Please advise. Thanks in advance. (2 Replies)
Discussion started by: simt
2 Replies

2. Shell Programming and Scripting

Help with Copy Move Script

Hello Gurus! Please help! I would like to get some help with the following: I'm working right now on a Data Warehouse project and I need to automate a manual procedure I am using to process the data files coming into the database, any information/ideas and or which script language to go... (4 Replies)
Discussion started by: alfpathros
4 Replies

3. Shell Programming and Scripting

ncftp copy/move pb

Hi, i have made this script for copy file in folder FTP in my local machine, when copy is finish i move files copied in backups_001 directory on same ftp 1°) the problem is if this script works with date if date is similar i taken, but if one day in ftp they put new file is no getting ... (0 Replies)
Discussion started by: livetele
0 Replies

4. Shell Programming and Scripting

Bash Copy-Move file problem

Hello, I made a script to copy files from one directory to another and move file after the copy is done. When files are present in the source directory there is no problem but when no file are present I'm getting an error. Please help !! --------------------- #!/bin/bash ... (2 Replies)
Discussion started by: lsimoneau
2 Replies

5. UNIX for Dummies Questions & Answers

How to copy/move to a file with a special character as the 1st char in the filename?

I am trying to create files with special characters in its filenames for testing purposes. This is on a Linux RHEL4 but this should also be applicable on a Unix shell. I am able to create files with special characters in the filenames...e.g. cp -pv foo.gif \*special.gif cp -pv foo.gif \... (6 Replies)
Discussion started by: sqa777
6 Replies

6. UNIX for Dummies Questions & Answers

help pls! need to move and copy pattern...

Help please... Need to convert below: Subcase ID : 10001 210000 0 1.22049E+01 220000 0 6.29560E+00 Subcase ID : 20703 210000 0 2.76398E+00 220000 0 2.43183E+00 230000 0 -1.87728E+01 Subcase ID : 13703 210000 0 ... (2 Replies)
Discussion started by: lakanino
2 Replies

7. UNIX for Dummies Questions & Answers

Unable to copy or move file

I am trying to move a file that is in the root directory. I suspect it is an old file created by someone when the system was installed. I am testing accessing the file by doing a copy but the command does not find the file. I am operating as root. We are HP-UX B.11.23 I do long listing and... (3 Replies)
Discussion started by: phcorn
3 Replies

8. Shell Programming and Scripting

Copy/move file which are not currently in use.

Hello experts, I'm doing a shell script that able to copy or move files. My situation is i have a drive ( lets say its S drive) where its receive all the files from mainframe i need to copy all the file from S drive to T drive. but only those files that are finished copied from mainframe... (5 Replies)
Discussion started by: CelvinSaran
5 Replies

9. Solaris

Can't erase/move/copy file!

Hey everyone!. I have a problem with a file that doesn't allow any operation on it. I can't rm,mv,cp nor any other operation to it, I get the following errors: bash-2.05# mv ora_2527.aud /bkp mv: cannot access ora_2527.aud bash-2.05# cp ora_2527.aud /bkp cp: cannot access ora_2527.aud... (4 Replies)
Discussion started by: dragonov7
4 Replies

10. Red Hat

Separate the apache user file and move or copy some were

Hi all, I'm Using Centos 6.4 /opt/my_aplication/entry/data/0/ There are Thousands of files in this Directory, Only i need to copy or move the apache User's file from this to /tmp/backup , I have listed apache user's file using find . -user apache -type f , its gave me the only apache... (2 Replies)
Discussion started by: babinlonston
2 Replies
feedback(1)						      General Commands Manual						       feedback(1)

NAME
feedback - Generate an optimization feedback file using pixie and prof SYNOPSIS
feedback [prof-options] [-o feedback-file] [-v] objfile [objfile-arguments] OPTIONS
The feedback command accepts the following prof(1) options and any unambiguous abbreviations: -asm, -clock megahertz, -{e|E}xclude proce- dure_name, -feedback filename, -heavy, -invocations, -lines, -merge filename, -numbers, -{o|O}nly procedure_name, -procedures, -quit n, -testcoverage, -truecycles [0,1,2], -zero. The feedback command ignores all other options in order to provide compatiblility with older versions of the feedback command. An option argument following an option not recognized by this or older versions of the feedback command will be treated as the objfile argument. Specifies the name of the feedback file. This can also be specified by the -feedback option of prof. You should use only one of these options to specify a feedback file, not both. Causes the pixie, application, and prof commands to be printed as they are invoked. OPERANDS
Specifies the executable of the application for which a feedback file is to be generated. A pixie-instrumented version of this executable will be executed with the current working directory and environment variables. The feedback file that is generated will reflect the behav- ior of one execution of the instrumented objfile. Specify the arguments that will cause the behavior that you want to have optimized when the compiler uses the feedback file. DESCRIPTION
The feedback command invokes pixie to add profiling code to an object file. The object file generated by pixie is executed to obtain pro- filing information. The feedback command then invokes prof to analyze the profiling information. If the output of objfile needs to be redirected, but not the output of the feedback utility, the redirection characters need to have sh(1) syntax and be within quotes. If objfile is multi-threaded, the LD_LIBRARY_PATH environment variable needs to include the current working directory. EXAMPLES
Send the profiling information to the standard output: $ feedback myprog Write a binary formatted performance profile to the file myprog.feedback, which then helps a subsequent recompilation optimize the program: $ feedback -feedback myprog.feedback myprog $ cc -O -feedback myprog.feedback -o myprog myprog.c FILES
Object with profiling code. Generated by pixie. Basic block addresses. Generated by pixie. Basic block counts. Generated by myprog.pixie. Note: Run pixie and prof independently if alternative names are needed. SEE ALSO
cc(1), pixie(5), prof(1) feedback(1)
All times are GMT -4. The time now is 11:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy