Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to ignore No such file or directory on the output? Post 303046327 by sea on Friday 1st of May 2020 12:17:05 AM
Old 05-01-2020
Quote:
Originally Posted by Varja
Today I am using on that specific line , instead of whole script executing. But this line making me to think , if for some reason that FS is not mounted during patching then I am missing that important message . Any way I can avoid ? I guess answer would be NO.
You could redirect error messages to a (log-)file, for a later review, or to parse for known issues after the 'main' commands.
So instead of >/dev/null you would be using >>/path/to/logfile.

Hope this helps
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help with a sh script to spool directory and modify the output (Oracle cnt file)

Hi, I'm creating a shell script to dynamically create a recreate controlfile for an Oracle database. I need to read a cold backup file system, and make some changes to these files. Let's say for argument sake the directory name is /ebsprod_c/oradata and it looks like this:... (6 Replies)
Discussion started by: exm
6 Replies

2. UNIX for Dummies Questions & Answers

Noob questions.. Append output to a file in different directory

Noob question! I know almost nothing so far, and I'm trying to teach myself from books, on a typical command line without using scripts how would I append output from a sort to a file in a completely different directory? example: If I'm sorting a file in my documents directory but I... (2 Replies)
Discussion started by: Byrang
2 Replies

3. Shell Programming and Scripting

Find: ignore directory completely

Hello, I know find can be prevented from recursing into directories with something like the following... find . -name .svn -prune -a type d But how can I completely prevent directories of a certain name (.svn) from being displayed at all, the top level and the children? I really... (2 Replies)
Discussion started by: nwb123
2 Replies

4. Shell Programming and Scripting

Need some Help for file filteration and saving the output in other directory using grep....plz ...

Hi all........ Plss do help me.......in a big trouble... :wall::wall::wall: I have 3 directories named as :1. /home/shuchi/source 2./home/shuchi/destination 3./home/shuchi/filter now the problem is /home/shuchi/source has say 2 files with extension .txt as given below : A.txt Code: ... (0 Replies)
Discussion started by: ektubbe
0 Replies

5. Shell Programming and Scripting

Need some Help for file filteration and saving the output in other directory

Hi all........ Plss do help me.......in a big trouble... :wall::wall::wall: I have 3 directories named as :1. /home/shuchi/source 2./home/shuchi/destination 3./home/shuchi/filter now the problem is /home/shuchi/source has say 2 files with extension .txt as given below : A.txt msisdn ... (5 Replies)
Discussion started by: ektubbe
5 Replies

6. Shell Programming and Scripting

Find command with ignore directory

Dear All, I am using find command find /my_rep/*/RKYPROOF/*/*/WDM/HOME_INT/PWD_DATA -name rk*myguidelines*.pdf -print The problem i am facing here is find /my_rep/*/ the directory after my_rep could be mice001, mice002 and mice001_PO, mice002_PO i want to ignore mice***_PO directory... (3 Replies)
Discussion started by: yadavricky
3 Replies

7. Shell Programming and Scripting

Ignore garbage output file

Hi All, below is my shell script #!/bin/sh set -x echo "test for multiple values" UIDPSWD=`cat /projects/feeds/twest/uidpswd` echo "oracle connection test" full=/projects/feeds/twest/test_file values=`cut -d'|' -f1 $full|sed -e "s/.*/'&'/" -e 's/$/,/g' -e '$s/,$//'` sqlplus $UIDPSWD... (2 Replies)
Discussion started by: krupasindhu18
2 Replies

8. Shell Programming and Scripting

Wget - how to ignore files in immediate directory?

i am trying to recursively save a remote FTP server but exclude the files immediately under a directory directory1 wget -r -N ftp://user:pass@hostname/directory1 I want to keep these which may have more files under them directory1/dir1/file.jpg directory1/dir2/file.jpg... (16 Replies)
Discussion started by: vanessafan99
16 Replies

9. Shell Programming and Scripting

Applying the same awk over a directory of files with individual file output

I am trying to apply an awk action over multiple files in a directory. It is a simple action, I want to print out the 1st 2 columns (i.e. $1 and $2) in each tab-separated document and output the result in a new file *.pp This is the awk that I have come up with so far, which is not giving me a... (6 Replies)
Discussion started by: owwow14
6 Replies

10. UNIX for Advanced & Expert Users

AIX find ignore directory

I am using aix. I would like to ignore the /u directory. I tried this but it is not working. find / -type f -type d \( -path /u \) -prune -o -name '*rpm*' 2>/dev/null /u/appx/ls.rpm /u/arch/vim.rpm (4 Replies)
Discussion started by: cokedude
4 Replies
DDTC.1(1)						User Contributed Perl Documentation						 DDTC.1(1)

NAME
ddtc - ddts client tool to help translators and reviewers. SYNOPSIS
ddtc [OPTIONS] COMMAND [ARGUMENTS] DESCRIPTION
This script helps both translators and reviewers with parsing mails from the ddts, splitting them into individual package files, sending reviews and patching buggy translations. Before sending back the translation or the review to the server, the script performs a few tests on it and does not sent it if one of the following succeeds: - number of paragraphs is different in the description and its translation, - line length is more than 80 characters, - <tab> character is found, - line starts with a dot (.) followed by other characters. It can also be run in interactive mode if no command is provided. In this case, menus are displayed to prompt the user for commands. COMMANDS
Here is the basic process: - Receiving mail from the ddts Pass the whole mail (i.e. with header and Mime parts) you received from the ddts to the standard input of this script, providing the parse command. If it finds descriptions to translate, it creates a package.todo file for each of them in your Base_dir/tr directory, diffing it with the preceding you have already translated if it exists. If it finds descriptions to review, it creates a package.todo file for each of them in your Base_dir/rev directory. If a preceding review exists, it diffs both and write the diff or set the description as reviewed if there is no difference. If it finds a bug report, it creates a package.bug file in your Base_dir/bug directory, it merges all bug reports to ease corrections. It also tries to detect collisions (see below). - Working with the files - Translating Rename the package.todo file in your Base/tr directory into package.tr. Edit it with your favorite text editor. - Reviewing Rename the package.todo file in your Base_dir/rev directory into package.rev. Do not edit the package file (with no extension), it is used internally by ddtc. Edit it with your favorite text editor. You can add comments that will be sent to the translator by adding lines beginning with `>> ' (your $Comment variable contents followed by a mandatory space character). If a translation has already been reviewed and has been modified the script show you the differences between both versions. Lines beginning with `>>--' correspond to your last version you reviewed, replace this by `+>--' if you think the translator is still wrong. Lines beginning with `>>++' are the new translator's version, replace this by `+>++' if you agree with the translator. Of course, if you still disagree with the translator, you can add comments as indicated above. - Fixing bugs Rename the package.bug file in your Base_dir/bug directory into package.fix. Edit it with your favorite text editor. It contains all changes and comments of the reviewers. Lines beginning with `>>' are comments and doesn't have to be removed. Lines beginning with `>>X+' are suggested corrections, replace this by `+>X+' if you want to validate it. Lines beginning with `>>--' are your last translation, replace this by `+>--' if you don't want to accept suggested corrections. Run the script providing the fix command. It creates a new package.tr file in your Base_dir/tr directory containing the unchanged lines and the lines you have selected. To prevent collisions (reviewers sending review based on a different version than yours), don't send fixed descriptions too often (once a day should be fine), retrieve your mails and parse them just before fixing, send the fixed description as soon as possible afterward. - Sending files back to the ddts Run the script providing the mail command. It sends descriptions from package.tr and package.rev files back to the ddts renaming them into package.sent and closing bugs if neces- sary. - Sending commands to the server Run the script providing the commands you want to be sent to the server. It checks the commands and send them to the server. Available commands: section section name sget package name get package name get number of packages review package name review number of packages getbug list of bug numbers btsclose list of bug numbers notification list of languages listtranslatedpackages status noneveraguide neveraguide noguide guide In each set: sget/get/review/getbug/btsclose/notification, noneveraguide/neveraguide and noguide/guide, only the first found command is used. The script automatically adds language, encoding and mail address (Mail_in) if requested, noguide is default. Due to server limitation, to avoid risk of deny of service attack, you cannot receive for more than 9 new documents at the same time. The script does not check for this, but the server will. For sget, get, review, status and listtranslatedpackages you have either to define the $Language variable in you .ddtcrc configuration file, or to provide a language extension via the --lang or -l option. - Cleaning directories Run the script providing the clean command. It removes unnecessary files in ddtc directories but temporary one as this directory should be a system wide temporary directory cleaned via system scheduled threads, but for debugging reason. - Getting statistics about my work Run the script providing the stats command. It prints figures based on file counts, it may not be accurate if directory cleaning has not been made before. OPTIONS
Verbosity level: -q, --quiet quiet mode -v verbose, start at level $Debug + 1, add more for more verbosity (see below) --verbose n set verbosity level to n (see below) cc mails to one-self: -s, --mail-self send mails also to oneself -n, --nomail-self don't send mails to oneself other: -l, --lang language extension to use when asking for new documents to translate or to review --ddtc-bug send review in special format. Ask your language coordinator before using this option. --noddtc-bug send review in standard format. -V, --version print version and exit -h, --help print usage and exit Verbosity Level 0 quiet only warnings and errors 1 normal package names, reviewer/translator names and bugs numbers 2 reserved for internal use 3 debug normal names of subroutines 4 debug verbose names and short arguments of subroutines 5 debug very verbose names, arguments and return values of subroutines 9 debug don't send mails same as 5 but send mails to oneself instead of ddts level 5 and 9 are really verbose, so you should direct the output to a file. SEE ALSO
ddtcrc(5). http://ddtp.debian.org/ddtp-text/misc/ddts-faq.txt. http://ddtp.debian.org/ddtp-text/guides/guide.txt. http://ddtp.debian.org/ddtp-text/guides/review.txt. AUTHOR
Nicolas Bertolissio <bertol@debian.org> perl v5.8.4 2004-06-18 DDTC.1(1)
All times are GMT -4. The time now is 02:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy