Turn off exec 2>${_ERRORFILE} > ${_LOGFILE} feature?
Hi Folks -
To make a long story short, this script is loaded into a workbench, executed via workbench user interface, and then I need to display the output on screen. However, I'm using the functions to direct stdout and stderror to their respective directories.
Is there a way to turn that off so I can leverage the cat command? Else, when I place my cat commands just prior to the exits, it doesn't work.
The trick is to assign additional file descriptors to stdout and stderr before you re-direct them, then point them back to the additional re-directors you 'saved' earlier, so to speak.
I thought you wanted the cat command just before the exit command?
To show the principle if you execute this script
The screen should display "some message"
The file logfile should contain "some message"
The file err file should contain "some error"
I'm running a Linux OS that uses Debian as it's base. A commercial vpn is installed that uses OpenVPN. For some reason, I can't get ipv6 to tunnel properly .... and Ipleak.net shows that my location is being unmasked by ipv6.
I've tried kernel commands at boot, I've tried sysctl.conf commands.... (2 Replies)
Hi Folks -
Quick question around the exec command again.
At the end of my script, I check for specific error codes that are returned from a process I execute within the shell script. Based on the error code, I send an email.
Do I need to turn off exec feature prior to send each email so... (5 Replies)
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)
I am using digital Unix and lpd. I have HP 4200n LaserJet TCP printer, but when I use lpr command, it always print duplex.
I can turn off duplex feature at the panel of the printer, but then other Windows computer cannot print duplex. How can I set up /etc/printcap file so that it will be... (2 Replies)
Greetings... i was wondering if there is any shell configuration
or third party application that enables the command history by pressing keyboard up arrow, like GNU/BASH does
or are there an SCO compatible bash versio to download?
where ?
just wondering
(sory my stinky english) (2 Replies)