Sponsored Content
Full Discussion: exec comand
Top Forums UNIX for Dummies Questions & Answers exec comand Post 82969 by Perderabo on Friday 9th of September 2005 02:39:04 AM
Old 09-09-2005
The first line sends fd 1 and fd 2 into your file. After that first line, put the lines that need to output to your file. Then use my second line which restores fd 1 and fd 2 to what they were originally.

The first line saves fd 1 and 2 by copying then to fd 4 and 5. The second line copies them back. The construct "4>&-" closes fd 4.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mount comand

Dear experts: I am installing software on Unix via telnet using CD on my NT workstation. What kind of NFS & mount comands I should run in the beginning ? (what exactly should be <drive for cdrom> and <mount ditectory> in the mount comand? Thanks in advance, etc.. (6 Replies)
Discussion started by: lostam
6 Replies

2. Shell Programming and Scripting

how to use sleep comand for milliseconds?

how to use sleep comand for milliseconds? (3 Replies)
Discussion started by: brkavi_in
3 Replies

3. Shell Programming and Scripting

Testing a comand in the script

Hi everyone , i am new to shell scripting and am having some problem to test if this line has been executed well and display a pass message on the screen or fail if not sqlplus XXTEST/$2 <<END > $XXTEST_TOP/log/$0.log @$XXTEST_TOP/admin/sql/XXTEST_SPE1_XX_QUOTE_DETAILS_TBL.sql XXTEST$2... (2 Replies)
Discussion started by: Lutchumaya
2 Replies

4. Solaris

comand df -k

I need to know the available space in my unix. when making a df -k it shows me the following thing: /dev/vx/dsk/emc2/vol06 136764867 121542767 1545614 99% /emc06 would need them to explain to me well the command. since under the column avail the resulting value is... (2 Replies)
Discussion started by: roviedo
2 Replies

5. HP-UX

collect comand usage

I would like to set up monitoring of CPU, memory and disk utilization as a cron job daily with this command, on a Tru64 machine. I presume that it can be done similar to syslog.dated procedure, so that every day i get a file in, for example, /var/adm/collect.dated/... Specifically, i would like... (0 Replies)
Discussion started by: veccinho
0 Replies

6. Solaris

Using dd comand

Hello peolple i have to check a tape with de dd comand and redirect the exit dd if=/dev/rmt/0cn ibs=1024k of=/dev/null i need that the exit from that commando go to a log if a do this dd if=/dev/rmt/0cn ibs=1024k of=/dev/null > x.log don`t send me nothing to the log only in the screen. I need... (1 Reply)
Discussion started by: enkei17
1 Replies

7. AIX

smit see comand performed ??

i in smit , press F6 , smit fs , Change / Show Characteristics of an Enhanced Journaled File System then F6 to see the comand , how can i see the command performed ?? x() { │ │ LIST= ... (5 Replies)
Discussion started by: prpkrk
5 Replies

8. Shell Programming and Scripting

Script Variables Inquiry, Values Okay in Standalone Exec, No-Show in Cron Exec

I have the following bash script lines in a file named test.sh. #!/bin/bash # # Write Date to cron.log # echo "Begin SSI Load $(date +%d%b%y_%T)" # # Get the latest rates file for processing. # d=$(ls -tr /rms/data/ssi | grep -v "processed" | tail -n 1) filename=$d export filename... (3 Replies)
Discussion started by: ginowms
3 Replies

9. Shell Programming and Scripting

UNIX comand

Team, I need unix command to grep directory part from the string for example I have a texts something like /apps/opt/data/current/spool/test.dbf /apps/opt/archive/../../test.dbf I need only directory part from that string like my out put will /apps/opt/data/current/spool/... (1 Reply)
Discussion started by: asappidi
1 Replies

10. Shell Programming and Scripting

Help with shell 'select' comand

Oracle Linux5.6 64 bit Need some help with use of ‘select' command. Given the following: PS3='Select recovery SCN: ' select rcvscn in ` sqlplus -s rman/fubar@rmcat <<EOF1 select db_name, CHECKPOINT_CHANGE# SCN, to_char(CHECKPOINT_TIME,'dd-Mon-yyyy... (2 Replies)
Discussion started by: edstevens
2 Replies
LIBMCRYPT-CONFIG(1)													       LIBMCRYPT-CONFIG(1)

NAME
libmcrypt-config - script to get information about the installed version of LIBMCRYPT. SYNOPSIS
libmcrypt-config [ --prefix[=DIR] ] [ --exec-prefix[=DIR] ] [ --libs ] [ --cflags ] [ --version ] DESCRIPTION
libmcrypt-config is a tool that is used to determine the compiler and linker flags that should be used to compile and link programs that use LIBMCRYPT library. OPTIONS
--prefix=PREFIX If specified, use PREFIX instead of the installation prefix that LIBMCRYPT was built with when computing the output for the --cflags and --libs options. This option is also used for the exec prefix if --exec-prefix was not specified. This option must be specified before any --libs or --cflags options. --exec-prefix=PREFIX If specified, use PREFIX instead of the installation exec prefix that LIBMCRYPT was built with when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options. --libs Print the linker flags that are necessary to link a LIBMCRYPT program. --cflags Print the compiler flags that are necessary to compile a LIBMCRYPT program. --version Print the currently installed version of LIBMCRYPT on the standard output. AUTHOR
This manual page was written by Christian Marillat <marillat@debian.org> for the Debian GNU/Linux system (but may be used by others). Mod- ified by RISKO Gergely <risko@debian.org> for libmcrpyt. 13 August 2004 LIBMCRYPT-CONFIG(1)
All times are GMT -4. The time now is 01:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy