before posting this questions i have looked up and found similar cases as the one i have but none of them had the answer i was lookink for.
i have the next two commands (with their corresponding output)
As you can see these two commands are correct, so $e1 and $e2 are actually numbers.
The problem is when i do the following:
i get the next error:
what i have found is that the sed output (or grep, certainly i'm not sure which of the two) is not compatible for a bc calculation; but i didn't find a solution for this. Perhaps the problem is not the one i think it should be.
Any suggestions would be apreciated. (Sorry for my english)
Hi,
I have developed a datastage job...which has many process running in parallel..but because of Fork Error my job is not working:(
Can any body help me out to solve this Fork error problem.:rolleyes:
My Os is SUNOS.
IS there any setting in Unix through admin where in if i set some paramter... (8 Replies)
I wanted to edit the time for a cron job that cleans out the quarantine in mailscanner.
etc/cron.daily/clean.quarantine
I edited the file
#!/usr/bin/perl
#
# IMPORTANT NOTE:
#
# Change the next line to 0 instead of 1 to enable this script.
# By default it will be disabled and... (2 Replies)
My script is throwing the error 'Syntax error: redirection unexpected'
My line of code..
cat nsstatustest.html | sed s/<tr><td align="left">/<tr><td align="left" bgcolor="#000000"><font color="white">/ > ztmp.Ps23zp2s.2-Fpps3-wmmm0dss3
HTML tags are getting in the way but they're needed to... (3 Replies)
Hello everybody,
I have a HP-UX B.11.11.
I had one disk and added one new.
When trying to configure the second disk Not Using the Logical Volume Manager(from SAM) I have this error:
Pid X killed due to text modification or page I/O error
I tryed to add another partion on the first disk,... (5 Replies)
The following is a piece of code to rename LOG_FILE_NEW to LOG_FILE once you get a result (either RUNNING or SHUTDOWN)
RESULT=""
sleep 30
while ; do
sleep 10
RESULT=`sed -n '/RUNNING/'p ${LOG_FILE_NEW}`
if ; then
RESULT=`sed -n '/SHUTTING_DOWN/'p ${LOG_FILE_NEW}`
fi
done
mv... (3 Replies)
Hi ,
I have script as follows ,
#!/usr/bin/ksh -x
if
then
alias echo="echo -e"
fi
MAX_ENTRIES=1024
nb_of_entries=`echo "$list_of_entries" | wc -w`
# Set number of tables
eval nb_of_tables=\`expr `expr $nb_of_entries / $MAX_ENTRIES` + 1 \`
# Output the number of tables
echo... (6 Replies)
Hi,
In the following excerpt of shell script code: I could not understand the sed syntax. Could anyone shed some light on this?
configure_ssl()
{
jboss_conf_file=$1
echo "Configuring SSL for -" ${jboss_conf_file}
isSSLSetup=`echo cat ${jboss_conf_file} | grep <Connector... (2 Replies)
Hi all,
I have a weird problem.
When i run the below code in SunOS and Linux i get different outputs
====
$ cat tst.ksh
#!/bin/ksh
echo "Abc" > $LOG_FILE
echo "Ret - $?"
=====
In Solaris
$ ./tst.ksh
Abc
Ret - 0
In GNU Linux (1 Reply)
i am logged in with "user1" on host1.
I m trying to ssh to host2 using user id "user2"
$ ssh user2@host2
Bad owner or permissions on /home/user1/.ssh/config Question 1: Can you please tell me why am i getting the Bad owner permissions error on that directory ?
Question 2: Where is it... (7 Replies)
rsync --delay-updates -F --compress --archive --rsh='/usr/bin/ssh -t -a -x' /web/admin/Transfer/data/ user1@destserver1:/tmp/testf
rsync version on sender server is:3.0.9
rsync version on sender server is:3.0.6
Linux sourceserver1 3.10.0-693.17.1.el7.x86_64 #1 SMP Sun Jan 14 10:36:03 EST... (1 Reply)
Discussion started by: mohtashims
1 Replies
LEARN ABOUT OSX
fsck_cs
FSCK_CS(8) BSD System Manager's Manual FSCK_CS(8)NAME
fsck_cs -- verify and repair CoreStorage logical volume groups
SYNOPSIS
fsck_cs -q device ...
fsck_cs -p device ...
fsck_cs [-y | -n] [-x | -g] [-l logfile] device ...
DESCRIPTION
The fsck_cs utility verifies and repairs CoreStorage logical volume group metadata.
The device parameter(s) should be path(s) to the "raw" (character special) disk device(s) such as /dev/rdisk1s1 that constitute the CoreStor-
age logical volume group. If you specify a "non-raw" (block special) path such as /dev/disk1s1, or just the disk name such as disk1s1, it
will automatically be converted to the corresponding raw disk device (/dev/rdisk1s1).
The options are as follows:
-q Performs a "quick" check and indicates if any corruptions were found via the exit status. In this mode stale MLV segments
are not checked, nor is proactive MLV mirror scrubbing performed.
-p Operates in "preen" mode. MLV mirror blocks are repaired where necessary. Newer transactions may be invalidated to force
a roll-back to an older, but consistent, filesystem state.
-y Causes fsck_cs to assume "yes" as the answer to all questions. In other words, always attempt to repair any errors that
are found.
-n Causes fsck_cs to assume "no" as the answer to all questions. In other words, never attempt to repair any errors that are
found.
-x Causes fsck_cs to produce its output in an XML-like (plist) format. This option is used when another application with a
graphical user interface (like Mac OS X Disk Utility) is invoking the fsck_cs tool and processing the output.
-g Causes fsck_cs to produce its output in GUI-compatible form. This is similar in usage to the -x option.
-l logfile Reproduce all console output, as well as additional status and error messages, to the specified file.
Alternatively device can be specified as the UUID of the CoreStorage logical volume group or as the name of a CoreStorage-hosted logical vol-
ume within that group, causing fsck_cs to derive the constituent raw device(s) from the IORegistry. In these cases you must indicate what
object is being supplied to identify the logical volume group:
--pv the component CoreStorage physical volume(s) directly
--uuid the CoreStorage logical volume group (as a UUID)
--lv a CoreStorage logical volume (as a device name)
DIAGNOSTICS
The fsck_cs utility exits with 0 if no corruption was detected or if all corruptions were repaired, and with >0 if any unrepaired corruption
remains.
BUGS
fsck_cs does not perform an exhaustive validation, nor is it able to fix many of the inconsistencies that it does detect.
HISTORY
The fsck_cs utility first appeared along with CoreStorage in Mac OS X 10.7.0.
Darwin July 22, 2011 Darwin