This seems to have several problems. First, you don't put newlines into your varb string. Second, you do the catenation wrong. Actually, you should have received an error from the line which assigns to var.
You say that vara is read from a file, so I assume that it already has the newlines in place (otherwise you do something wrong when reading it). As for varb and var:
Hi,
I am creating a file in Unix using a shell script. The file is getting created in the Unix - ANSI format. My requirement is to convert it to the PC - ANSI format. Can anyone tell me how to do this?
Thanks,
Sunil (0 Replies)
Hi there,
I've been scouring these forums and have found similar threads, but none apparently helped me solved my problem :rolleyes:
I'd like to run a command within a bash script, but that command is provided by the user to the script and may contain quotes, which is where the problem lies.... (9 Replies)
I have some troubles with variables and quotes...
I want:
if $URL is empty (no user input) go to http://www.localhost/index.php/ else add this string (search) "?s=+$URL"
EXAMPLE:
No user input
string= http://www.localhost/index.php/
User input = "unix"
string=... (3 Replies)
I have the following ksh-script:
#!/bin/ksh
# Ueberprüfe, ob genau ein Parameter angegeben wurde
test "$#" -eq "1" || { echo "USAGE: path_cleanup <PATH_NAME>"; return 1; }
# Ueberpruefe, ob awk und nawk installiert sind
test -x /bin/nawk || { echo "ERROR: nawk is not installed"; return 1;... (2 Replies)
I follow the description of wiki (Lamport's bakery algorithm - Wikipedia, the free encyclopedia), then implement that algorithm in C, but it doesn't work, Starving is still here, is the implementation worry?
Only print out:
Thread ID: 0 START!
Thread ID: 0 END!
Thread ID: 0 START!... (2 Replies)
Howdy, I got a script that adds a esc char before all chars interpeted by bash shell but I wan't other solution. Is there a way to set ' and " as a non quotes type in bash (some local variable)? Have found that scsh is a non-quoting type shell but after reading Why I don't use scsh as a scripting... (3 Replies)
Need a little help.
I have just a simple string with a lot double quotes in it. I need to be able to parse through this string, and know how many double quotes I have, and where I am, so I can key off every 9th double quote. For example (coding is not complete):
#!/bin/bash
count=0... (3 Replies)
Ok, this one isn't for everybody, it's pretty tough and I've spent a good deal of time on it without figuring it out yet.
Can anybody get this script to work:
#!/bin/bash
cq_fname="%let outputfile="/user/cq_"$1".csv";"
sed "29s/.*/\"$cq_fname\"/" file1.sas >... (3 Replies)
Hi, I just bought a new mac and have been running a program out of terminal, but even early on I noticed that my single quotes looked a lot different from the ones used in all of the namelists and other files of the program. Specifically, mine are kind of slanted whereas the others are very... (7 Replies)
I have an FTP server with thousands of Invoices. All Invoices are in a folder called /volume1/MBSInvoices/
Monthly invoices are added to that folder every month.
Here is a sample filename of the Invoices:
invoice_1_20170101_10010052_10020052_10030052_JOHNDOE.pdf
the Account ID is the... (6 Replies)
Discussion started by: badr777
6 Replies
LEARN ABOUT OSF1
envmond
envmond(8) System Manager's Manual envmond(8)NAME
envmond - Environmental Monitoring daemon
SYNOPSIS
/usr/sbin/envmond
DESCRIPTION
Environmental Monitoring provides a means of detecting system threshold conditions, that if exceeded, could result in a loss of data or
damage to the system itself. Using the envmond daemon, thresholds levels can be checked and corrective action can ensue before any damage
occurs.
The envmond daemon performs the following: Queries the system for exceeded threshold levels. Broadcasts a message to users warning of high
threshold conditions or fan failure, and suggests corrective action. Sends a message to users when a high temperature condition has been
resolved. Notifies all users that an orderly shutdown is to be initiated if recovery is not possible.
To enable Environmental Monitoring, the envmond daemon must be started during the system boot, but after the eSNMP and Server System MIB
agents have started. Before starting Environmental Monitoring, a system check is performed. If the system hardware does not support Envi-
ronmental Monitoring, the envmond daemon and Server System MIB are not started.
You can customize, start, and stop the envmond daemon using the envconfig utility. For more information, see the envconfig reference page.
FILES
A database that contains the values of the Environmental Monitoring variables.
SEE ALSO
Commands: envconfig(8)envmond(8)