Sponsored Content
Top Forums Shell Programming and Scripting Redirecting script output to terminal Post 302739979 by Raviteja saddal on Wednesday 5th of December 2012 09:01:59 AM
Old 12-05-2012
For example now i am in a directory "user/documents".I have executed the script for changing the directory to "user/documents/ravi/folder2/folder3" . After that I have tried pwd and i got output as "user/documents" . but i need output as "user/documents/ravi/folder2/folder3"
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

redirecting one terminal into an other??

Hi guys; I want to show what am I doing on a terminal into another. I did something close but its not working really good. Example: cat /dev/pts/12 >/dev/pts/13 where 12 is my terminal and 13 its the other terminal. This is usefull for me to share my small unix knowledge to other people... (4 Replies)
Discussion started by: piltrafa
4 Replies

2. Shell Programming and Scripting

Redirecting to standard output from within called script

Hi, How to achieve this? Let us assume the following: There are 2 scripts a.ksh and b.ksh $ cat a.ksh sh b.sh 2>&1 >> /work/log/a_log.txt $ cat b.sh echo "abcd" My requirement is, is there a way to display this abcd in standard output also alongside of writing into a_log.txt?... (8 Replies)
Discussion started by: vigneshra
8 Replies

3. Shell Programming and Scripting

redirecting SQL output from within a shell script

Hi all I would like to open a SQL session from within a shell script and then redirect the output of the SQL command to a file. e.g. #!/bin/bash sqlplus "/ as sysdba" <<EOF @$HOME/recovery_space.sql EOF I want to redirect the output of the SQL command to a temp file, because... (2 Replies)
Discussion started by: soliberus
2 Replies

4. Programming

Redirecting Terminal to Local Application!

i wanted to execute some terminal commands on local linux, parse their output and display it to the user, i checked netcat source code but i couldnt understance it since im new to c (and linux at the same time). so i was wondering if there is away to run an instance of terminal hidden, read and... (15 Replies)
Discussion started by: JonhyM
15 Replies

5. UNIX for Dummies Questions & Answers

redirecting the script output to more than 1 file

Hi, I want to redirect my script output to more than one file without printing the result to the screen. How to do that? ex: echo "hi" >> a.txt b.txt cat a.txt hi b.txt :confused: (2 Replies)
Discussion started by: boopathyvasagam
2 Replies

6. Shell Programming and Scripting

redirecting the terminal to file

Hi, I want to save the whole Output of the terminal in a file. I dont want to redirect a single command to a file (ls -l > test.txt), I want to redirect the whole last 40 lines into a file. Maybe i can read out the terminal while working with it, but i cant find a way to save the whole... (2 Replies)
Discussion started by: niratschi
2 Replies

7. UNIX for Dummies Questions & Answers

redirecting script output

Hello, I am interested in taking the output from a script i wrote and using it as input to a different script i wrote. So for example i want to take the output from program2 and use it as a parameter for program1. I didnt think i could use the >> symbols because i think that is just for .txt... (4 Replies)
Discussion started by: GmGeubt
4 Replies

8. Shell Programming and Scripting

Redirecting output for the entire script

Hi All, I am trying to redirect output for every line in a korn shell script that is going to generate output and append it to a log file. I have been doing this after EACH and every line that is going to produce output: command 1 >> test.log command 2 >> test.log command 3 >>... (5 Replies)
Discussion started by: MIA651
5 Replies

9. Shell Programming and Scripting

Redirecting command output to a file in a shell script

Hello All, I have some unique requirement. I have written a very lengthy script which calls number of resource script to execute a particular task. What I want is output of each command(called from main script and resource scripts) should go to a... (3 Replies)
Discussion started by: anand.shah
3 Replies

10. Shell Programming and Scripting

Redirecting terminal to variable

when i do something like this: bona=$(echo hi2 > /dev/pts/1 ; printf '%s\n' "" | sed '/^$/d') i get: hi2 and the $bona variable is empty, when I run: echo ${bona} i get the result "hi2" outside of the variable. I want it stored in the bona variable with nothing outputted to the... (6 Replies)
Discussion started by: SkySmart
6 Replies
DDIF(5) 							File Formats Manual							   DDIF(5)

Name
       DDIF - Digital Document Interchange Format (DDIF) files

Description
       Digital	Document Interchange Format (DDIF) is a DDIS/ASN.1 encoding for the interchange of revisable compound documents with document pro-
       cessing systems.  DDIF is also a document output format, a storage format for user documents residing on a disk, and  a	compound  document
       format.

       The  purpose  of DDIF is to allow the creation of compound documents and also to serve as a standard intermediate format for the conversion
       of documents based on other formats.  For example, a simple ASCII text file can be converted to DDIF, and the DDIF file can  then  be  con-
       verted to PostScript.  A DDIF document can also be converted to ASCII.

       DDIF files are documents or portions of compound documents.  A DDIF document is considered a simple document if it consists of one file.  A
       DDIF document is considered a compound document if it consists of more than one file, the master of which must be a DDIF file.

       A DDIF file can contain storage addresses (for example, filename) of other files, which must be DDIF, ASCII text,  binary,  or  PostScript.
       References to DOTS files is not supported.

       Because	a  DDIF file can reference another DDIF file and the referenced DDIF file can reference other DDIF files, a DDIF document can con-
       sist of a tree of files.

       The following commands are used to manipulate DDIF files:

       cdoc		   Provides a set of converters to and from DDIF format.

       ctod		   Packs DDIF documents into DOTS syntax.  The user can choose to archive a DDIF document in  this  manner.   The  command
			   also copies DDIF files from one location to another.

       dtoc		   Copies DDIF files from one location to another.

       dxvdoc		   Enables  user to view DDIF documents. The command is used on workstations running ULTRIX UWS software.  The command can
			   also display imbedded graphics and image data that is encoded in the DDIF syntax.

       vdoc		   Enables user to view DDIF documents.  The command is for use on character-cell terminals.

       DDIF documents can be mailed to other users.

See Also
       cdoc(1), ctod(1), dtoc(1), vdoc(1), dxvdoc(1X), DOTS(5), DDIS(5)

																	   DDIF(5)
All times are GMT -4. The time now is 10:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy