About Shell mode
Hi all,
Can any one explains what is "shell mode"?? which is one of the beectl utilities modes!!
Thanks
Dha_Suh
The following example should make it clear, the first command is beectl command mode, the second is shell mode (with seperate exit):
-bash-3.00$ $ORACLE_HOME/beehive/bin/beectl list_enterprises
-----------------+--------------------------------------------------------------
Enterprise name | Identifier
-----------------+--------------------------------------------------------------
Oracle | enpr=Oracle
-----------------+--------------------------------------------------------------
1 Record(s) displayed.
-bash-3.00$ $ORACLE_HOME/beehive/bin/beectl
beectl> list_enterprises
-----------------+--------------------------------------------------------------
Enterprise name | Identifier
-----------------+--------------------------------------------------------------
Oracle | enpr=Oracle
-----------------+--------------------------------------------------------------
1 Record(s) displayed.
beectl> exit
-bash-3.00$
Similar Messages
-
No "Clam shell" mode with MBP?
I have used powerbook with an external display and mouse with the lid closed (clam shell mode -as they call it). But when I try the same with MBP, I get the display for a few seconds and the mouse stops responding and the system seems to sleep. Waking up with the external keyboard/mouse makes the cycle reapeat - losing the display and MBP sleeping in few seconds.
No problem at all with the external display and mouse when the lid is open.
Any insights?Do you have the power adapter plugged into the MacBook? If not, it will sleep after a few seconds.
-
Question about BART - mode of the manifest
Good Day,
I have looked into the manifest of the bart generated as follows, get confused about the mode(which is permissions), why there is a prefix (3 bits normally, for example 100, 120, 106) before the permissions (such as 755, 600, 777), what are those bits meaning? Appreciate for any help!
/etc D 3584 40755 user::rwx,group::r-x,mask::r-x,other::r-x, 3c6803d7 0 3
/etc/.login F 524 100644 user::rw-,group::r--,mask::r--,other::r--,
3c165878 0 3 27b53d5c3e844af3306f1f12b330b318
/etc/.pwd.lock F 0 100600 user::rw-,group::---,mask::---,other::---,
3c166121 0 0 d41d8cd98f00b204e9800998ecf8427e
/etc/.syslog_door L 20 120777 user::rw-,group::r--,mask::rwx,other::r--,
3c6803d5 0 0 /var/run/syslog_door
/etc/autopush L 16 120777 user::r-x,group::r-x,mask::r-x,other::r-x,
3c165863 0 0 ../sbin/autopush
/etc/cron.d/FIFO P 0 10600 user::rw-,group::---,mask::---,other::---,
3c6803d5 0 0Simon2k7 wrote:
> But why doesnt DW8 automatically
> insert the mark of the web all the time.
Because it works only when testing the file locally. You
should remove
it before uploading the file to your remote server as it has
no effect
on the way others see your pages.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
let me ask you all something about “Append mode” of cs6, cc & cc2014 project file in order to insert multiple xml sequence which is sent from 3rd-party tool into specific project file .
Finalcut pro 7 & x was supported this , but i am not sure will support this on cs6, cc & cc2014 .
is this possible ??
could someone let me know about this - append mode possible or not ??let me ask you all something about “Append mode” of cs6, cc & cc2014 project file in order to insert multiple xml sequence which is sent from 3rd-party tool into specific project file .
Finalcut pro 7 & x was supported this , but i am not sure will support this on cs6, cc & cc2014 .
is this possible ??
could someone let me know about this - append mode possible or not ?? -
Ow can i use my mac book pro in cam shell mode?
I there a setting to use my mac-book pro in the cam-shell mode?
Just attach a keyboard and mouse through USB or Bluetooth. Any external input activated clamshell. Graphics warnng: external display of clamshell default to internal screen resolution maximum, not external display max.
-
Doubts about Hibernation Mode in imac
Hi!
I have some doubts about hibernation modes in my imac.
Some times the hibernation led pulses, sometimes just stays on.
Can anyone explain if there are any diference between this two hibernation modes?
Thanks a lot.
VidalIf it is in hibernation, it should pulse. If the machine has got to the point where the screen has turned off but the computer has not gone to sleep yet, the light will not pulse. Check your energy saver settings in your system preferences.
Some applications can prevent a proper hibernation and while the screen will turn black, the system will not sleep properly and the light will not pulse.
Karn. -
Any documentation about text mode installation
I have been searching the Sun website and other webs for some documentation on text mode installation of Solaris 10 on SPARC machines but have been unable to find anything to this effect. Sun's intallation guide does not discuss text mode intallation. I will be grateful if somebody could point me to a resouce that can guide me running the installation in text mode.
Thanks in advance.I wanted to manually run all the tools andprograms
needed for an installation. For example, insteadof
the installation program prompting me forformating
the drive, I should be doing it by using the tool
needed for the purpose.I'm afraid I don't understand what you mean here.
What "tool" are you expecting to use instead?
Both the GUI and text installers ask the same
questions.... I thought your question had something
to do about the difference between the GUI installer
and the text installer.
I did the interactive insalltion as describedabove
some time ago, and now I want to do it manually.How is "interactive" different from "manually"? To
me they both simply mean that you haven't automated
everything via custom jumpstart.That's right. What I mean from manual installation is to be able to run all the tools (programs) needed for installation yourself giving you a greater flexibility and first-hand feel and knowledge of the operating system instead of let the installation program (script or a program?) do it.
What I meant from interactive installation is the case where installation program automates everything for you.
>
Will
it be done through single user shell? If so, how?No, it's a program (suninstall) that is running.
It's not a shell... but I'm not sure I understand
your question.
(impatiently bumping a post is annoying)I got a response anyway!Creating a properly phrased question is usually more
effective.[Let me admit that I did not phrased my question well. May be because English is not my first language or I am not well aware of Sun terminology].
>
DarrenThanks in advance for any help.
A. -
A rundown of what I've tried:
Adjusting energy settings to try to prevent sleep
Pluging the USB keyboard and wacom tablet directly into the laptop (as opposed to a usb hub)
My laptop's power cable is connected
My display (a Vizio TV) is recognized in the System Preferences panel
I'd been using this TV for about a year with my older Macbook Pro (OS 10.5.8), though using a different wireless keyboard and mouse
***Update: The issue seems to lie with the keyboard and wacom tablet. I am trying to use a wireless Case Logic keyboard (with dongal) and wired wacom tablet to wake the Macbook Pro in clamshell mode. To experiment, I tried using my Logitech wireless keyboard & mouse set (also dongal) that I had been using before and it wakes the computer without any problems! However, I really need to be able to use my wacom tablet. If I switch to the tablet after waking the computer using the Logitech keyboard & mouse it works, but once the computer sleeps it won't work anymore. I could keep switching back and forth I suppose, but it's sort of a pain. There has to be an easier way! Any ideas why the wired wacom tablet is unable to wake the computer in clamshell mode?
Thanks!So your keyboard or mouse won't wake the Mac when you close the lid correct? Try resetting the SMC and pram
Shut down the computer.
Disconnect the MagSafe power adapter from the computer, if it's connected.
Remove the battery.
Press and hold the power button for 5 seconds.
Release the power button.
Reconnect the battery and MagSafe power adapter.
Press the power button to turn on the computer.
Resetting NVRAM / PRAM
Shut down your Mac.
Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
Turn on the computer.
Press and hold the Command-Option-P-R keys before the gray screen appears.
Hold the keys down until the computer restarts and you hear the startup sound for the second time.
Release the keys. -
Explain about transparent mode, single mode, multiple context mode
You can explain about the differents of transparent mode, single mode, multiple context mode in ASA 5500? Thank you very much.
Great question. Hope the below helps:
Transparent Mode: In this mode, the ASA will filter traffic without requiring L3 on the ASA. This means that in your config you will not put IPs on the interfaces to be used for traffic filtering. Thus, filtering is transparent to the traffic as the traffic isn't directly routed to the firewall. Think of it like you have a server plugged into a switch. In transparent mode, you place the ASA between the server and the switch and no configuration change is required to the server. In routed mode, you place the ASA in the same physical location between the server and switch, but have to change the server to use the ASA as a default gateway.
Single Mode: Default mode of an ASA. The ASA acts as a single firewall and all interfaces are provisioned to be managed through a single firewall configuration.
Multiple Context Mode: The ASA is split into multiple virtual configurations. With the ASA now virtualized, you provision the physical interfaces on the ASA to the virtual firewall configured. Each context has it's own configuration seperate from the rest of the firewall. Multi-context is meant for enterprises to invest in a single piece of hardware and scale it for use as multiple security devices.
Hope this helps. Let me know if you have anymore questions!
-Mike
http://cs-mars.blogspot.com -
I want to know critics about Layout Mode
Hi,
I want to know critics of Layout Mode feature in DW. Seems
like a wonder tool to me, and apparently solves many of the
problems i had when laying out pages, all you have to do is drag
and drop tables or cells here and there and add content to them!
Is there any disadvantage or inconvenience with this
approach? Why isn't it the typical workflow in town (CSS seems to
be the dominant approach, despite obvious more steps and workforce
than layout mode).
Thank you in advance for your opinions, i appreciate.Hello,
If the web were static like print media, layout mode would be
fine.
In many graphics applications like Photoshop, you can drag
elements (layers)
around until you get your design exactly how you want it.
Then, you simply save your design in whatever image format
you'd like. All
of the layers are merged into one, static image,
All of the parts have merged into one element, no longer the
multiple parts
you were dragging around.
When a user sees your image, either on a piece of paper or on
their computer
screen, it looks the same to everyone.
Overall, it might be bigger or smaller in whole dependant on
print size or
monitor resolution, but the layout itself can't change.
A web page, unless the page is one giant image, remains
multiple parts after
you publish it and some of these parts the user can change,
such as text
size.
Any area of your design with text in it will look different
on their screens
than on yours, but the images won't change size.
This is how the web works, and this is where layout mode
fails.
As you drag things around in layout mode, DW writes code to
try to keep the
elements exactly where you want them in relation to other
objects.
It merges cells which fills the code with colspans and
rowspans, and it adds
spacer images by the tens or hundreds in an effort to keep
everything "stuck
together" exactly where you dropped the elements.
The more things your drag and drop, the more complex the
code.
When you are done, your layout looks like you want it to on
your screen but
behind it is code that is very fragile and cumbersome.
With this code, if any part of your layout changes size in
someone's browser
(like a text area), everything else in the layout that is so
tightly tied to
it
will be affected as well.
This usually results in things shifting and not lining up any
more, the page
"breaking" and filling up with gaps and misalignments
throughout the page.
The one change ripples throughout the whole page, because
every element is
so tightly connected by the code Layout Mode wrote.
In essence, Layout Mode wrote such stringent and unforgiving
code that your
design will only work reliably at 1 text size and 1 browser
viewport size.
Those sizes are the sizes your browser was set at when you
designed the
page.
Think of it this way.
You have 100 playing cards and you lay them out on a table in
10 rows of 10
columns each.
You make sure all of the edges are touching.
It's a nice, tight layout.
On one of the cards in the center, you write some words in
marker.
If you saved this as an image, it would look the same to
everyone.
A hundred cards with all the edges touching and text written
on one of them.
If someone enlarges the image to read the text on the single
card, all the
other cards grow equally and the layout looks exactly the
same, only bigger.
However, if you saved this as a website and someone enlarges
the text to
read it, only the card with the text gets bigger.
All the others stay the same size. But you wanted all the
edges touching.
You'd like to keep as many cards as neatly arranged as
possible, but layout
mode doesn't care about that.
It's trying to keep every card edge touching, just like you
did when you
dragged and dropped them..
What happens to the neat rows and columns of cards if the
single card with
text on it doubles in size?
Cards all around it move and nothing lines up anymore. Gaps
appear between
every card.
Changing the size of that one piece of the layout ripples
through the rest
of the page because of that really complex, cumbersome code
Layout Mode
wrote. It really wants to keep everything just like you
wanted it, all the
edges touching and it doesn't care what the layout looks
like.
If you had used standard mode instead of layout mode, the
page would be
dynamic in that the elements (the cards) can freely flow in a
logical manner
under different user's settings.
When this single card doubles in size, the group of cards
above wouldn't be
affected. They would stay neatly arranged in rows with all
their edges
touching as would the group of cards below the enlarged card.
You'd keep a nice, neat layout of cards with just one row of
cards in the
center taller than the other rows because of the single
bigger card.
Instead of being filled with gaps and misalignments all over
the place that
Layout Mode's code caused, the page would still look good.
Layout Mode wrote such bad code as it tried to keep a layout
static in a
dynamic environment, that it has been removed from
Dreamweaver.
Here's more very good info, including a graphic example of a
common problem
Layout Mode creates for the unsuspecting....
http://apptools.com/rants/spans.php
There's something arguably as bad as layout mode you should
also stay way
from.
They, too, offer the ease of drag and drop but at a huge
price when you
realize all the troubles and then have to completely rebuild
your site.
Please read this:
http://apptools.com/examples/pagelayout101.php
Particularly, the section entitled "The trouble with layers"
(AP Divs)
Take care,
Tim
"mballom3" <[email protected]> wrote in
message
news:[email protected]...
> Hi,
>
> I want to know critics of Layout Mode feature in DW.
Seems like a wonder
> tool
> to me, and apparently solves many of the problems i had
when laying out
> pages,
> all you have to do is drag and drop tables or cells here
and there and add
> content to them!
>
> Is there any disadvantage or inconvenience with this
approach? Why isn't
> it
> the typical workflow in town (CSS seems to be the
dominant approach,
> despite
> obvious more steps and workforce than layout mode).
>
> Thank you in advance for your opinions, i appreciate.
> -
More Details about Multithreading Mode in User Management
Good morning,
we are working with Portal 7.0 on SP 14 and there is an option to activate the multithreading mode
in the User Management part of the support desk. Since this option seems to significant speed up our
login time i´am interested in more details about what is happening here. But i was unable to locate
any documentation / forum entries / blogs about it. Another point is the question if it is possible
to persist that option. After every Node / Serverrestart multithreading gets deactivated again.
Any Ideas / Links / Helps would be appreciated and points will be rewarded.
Thank you,
MarcoHi
Here is a useful HDD password summary:
http://aps2.toshiba-tro.de/kb0/TSB6B01MC000CR01.htm
_HDD User Password and HDD Master Password:_
There are two levels of the HDD Password, the HDD User Password and the HDD master Password. If both levels of HDD Password have been registered, you can access the HDD by entering either of them. TOSHIBA Password Utility (TPU) only supports the HDD User Password. If you want to register both, open BIOS SETUP. If the HDD User Password has been registered, the HDD Master Password can not be registered
Hope this helps a little bit -
when making a call,hold the phone up-side-down then it will be changed to speaker mode automatically.Please consider about that in the next firmware.
Message was edited by: bzylgFor suggestions on new features for the phone, please go to:
http://www.apple.com/feedback/iphone.html
Apple does not monitor these forums for this type of information. If you use the feedback link they will see your idea. -
About shell scripts for large-scale automation of encoding tasks
in the user menu of Compressor, it said that we can use the command line to write shell scripts for large-scale automation of encoding tasks.
I would like to have more information about the shell script for compressor, is that any document link?
ThanksYou can use a script function to set-up a more secure environment that you call at the start of every admin script. This could be your main stamp album for stuff that can be moved there.
A few more stamps to add to the collection (be sure to read up on them before use):
1) reset the command hash
hash -r
2) prevent core dumps
ulimit -H -c0
3) set the IFS
4) clear all aliases (see unalias -a)
Also you can remove the ALL from sudo and add explicit commands to the the sudoers file. There's a lot of fine tuning you can do in sudoers - inc. env variables as teekay said.
But I'm no expert so best to check all of the above. -
Hi,
How to change the optimizer mode from ALL_ROWS
ThanksWhether we do not know the OP's Oracle version, we can assume it is not 8i or 9i. Do you realize the link you provided is very old. Still speaking about RULE optimizer, "analyze table" command (both becoming obsolete then depracted) without telling anything about more modern database such as 10g+. Moreover there're some rule of thumbs which can mislead query tuning.
Much better to refer to the Oracle document that Pierre linked to in first place.
And why not ask to the OP, why he/she wants to modify the optimizer from ALL_ROWS to what value with what expected results, based on what analyzes...
Nicolas. -
[SOLVED]Questions about a shell program and about shell: files, regexp
Hello, I'm writing this little program in shell:
#!/bin/bash
# Synopsis:
# Read from an inputfile each line, which has the following format:
# lllnn nnnnnnnnnnnnllll STRING lnnnlll n nnnn nnnnnnnnn nnnnnnnnnnnnnnnnnnnn ll ll
# where:
# n is a <positive int>
# l is a <char> (no special chars)
# the last set of ll ll could be:
# - NV
# - PV
# Ex:
# AVO01 000060229651AVON FOOD OF ARKHAM C A S060GER 0 1110 000000022 00031433680006534689 NV PV
# The program should check, for each line of the file, the following:
# I) If the nn of character lllnn (beggining the line) is numeric,
# this is, <int>
# II) If the character ll ll is NV (just one set of ll) then
# copy that line in an outputfile, and add one to a counter.
# III) If the character ll ll is NP (just one set of ll) then
# copy that line in an outputfile, and add one to a counter.
# NOTICE: could be just one ll. Ex: [...] NV [...]
# [...] PV [...]
# or both Ex: [...] NV PV [...]
# Execution (after generating the executable):
# ./ inputfile outputfileNOM outputfilePGP
# Check the number of arguments that could be passed.
if [[ ${#@} != 3 ]]; then
echo "Error...must be: myShellprogram <inputfile> <outputfileNOM> <outputfilePGP>\n"
exit
fi
#Inputfile: is in position 1 on the ARGS
inputfile=$1
#OutputfileNOM: is in position 2 on the ARGS
outputfileNOM=$2
#OutputfilePGP: is in position 3 on the ARGS
outputfilePGP=$3
#Main variables. Change if needed.
# Flags the could appear in the <inputfile>
# ATTENTION!!!: notice that there is a white space
# before the characters, this is important when using
# the regular expression in the conditional:
# if [[ $line =~ $NOM ]]; then [...]
# If the white space is NOT there it would match things like:
# ABCNV ... which is wrong!!
NOM=" NV"
PGP=" PV"
#Counters of ocurrences
countNOM=0;
countPGP=0;
#Check if the files exists and have the write/read permissions
if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]; then
#Read all the lines of the file.
while read -r line
do
code=${line:3:2} #Store the code (the nnn) of the "llnnn" char set of the inputfile
#Check if the code is numeric
if [[ $code =~ ^[0-9]+$ ]] ; then
#Check if the actual line has the NOM flag
if [[ $line =~ $NOM ]]; then
echo "$line" >> "$outputfileNOM"
(( ++countNOM ))
fi
#Check if the actual line has the PGP flag
if [[ $line =~ $PGP ]]; then
echo "$line" >> "$outputfilePGP"
(( ++countPGP ))
fi
else
echo "$code is not numeric"
exit
fi
done < "$inputfile"
echo "COUN NON $countNOM"
echo "COUN PGP $countPGP"
else
echo "FILE: $inputfile does not exist or does not have read permissions"
echo "FILE: $outputfileNOM does not exist or does not have write permissions"
echo "FILE: $outputfilePGP does not exist or does not have write permissions"
fi
I have some questions:
I) When I do:
if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]; then
else
echo "FILE: $inputfile does not exist or does not have read permissions"
echo "FILE: $outputfileNOM does not exist or does not have write permissions"
echo "FILE: $outputfilePGP does not exist or does not have write permissions"
fi
I would like to print the things on the else, accordingly, this is, print the right message. Ex: if "$outputfileNOM" did not have the write permission, just print that error. BUT, I don't want to put a lot of if/else, Ex:
if [[ -r $inputfile ]]; then
if [[-w $outputfileNOM ]] then
else
For the READ permission, and the other for the WRITE
Is there a way to do it, without using a nesting approach, and that maintains the readability.
II) About the:
if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]
is OK if I use the flag "-x" instead of -r or -w. I don;t have a clear definition of what is the meaning of:
-x FILE
FILE exists and execute (or search) permission is granted
III) Notice the ATTENTION label in my code. I notice that there are some possibilities, for ex: having white spaces before, after or before or after. I'm believing in the consistency of the input files, but if they change, it will explode. What could I do in this case? Is there an elegant way to manage it? (exceptions?)
Thank you very much!
EDIT: corrected what rockin turtle wrote bellow about the format. Thank you.
Last edited by gromlok (2011-10-09 18:39:03)I) Regarding your if statement, you could do something like this:
estr='FILE: %s does not exist or does not have %s permissions.\n'
[ -r $inputfile ] || ( printf "$estr" "$inputfile" "read" && exit 1 )
[ -w $outputfileNOM ] || ( printf "$estr" "$outputfileNOM" "write" && exit 1 )
[ -w $outputfilePGP ] || ( printf "$estr" "$outputfilePGP" "write" && exit 1 )
II)The -r/-w/-x mean that the file has the read/write/execute bit set. Do a
$ man chmod
for details.
III) You should be able to do
if [[ "$line" =~ .*\<NV\> ]]; then
echo "..."
(( countNOM++ ))
fi
but that didn't work for me when I tried it. I don't know if this is a bug in bash, or (more likely) something that I am doing wrong.
Regardless, I would write your script like this:
#!/bin/bash
file=$(egrep '^[A-Z]..[0-9]{2}' "$1")
grep '\<NV\>' <<< "$file" > "$2"
grep '\<PV\>' <<< "$file" > "$3"
echo 'Count NON:' $(wc -l < "$2")
echo 'Count PGP:' $(wc -l < "$3")
Note: In reading your script, your comments imply that each line of the input file starts with 'llnnn' but the example line you gave starts with 'lllnn'. That is, there are 3 letters (AVO) followed by 2 numbers (01). The above script assumes that lines start with 'lllnn'
Maybe you are looking for
-
I can't see the preview of my source on Flash media live encoder ... I'm using CamTwist on mac
-
HELP - Choose mid specs laptop for video editing in Premiere and After Effects
Hello there, Basically I have DSLR Camera (Canon 600D) which I use to film in Full HD (1080P 50fps) for my movies (short plays and medium plays). So, I am thinking to buy a laptop with main porpouse to edit my videos in Premiere CS6 and After Effects
-
Adobe Story not compatible with Google Chrome. Why?
Google Chrome is my preferred web browser, but, alas, I realized that Adobe Story won't open in Chrome. So I'm now having to use two different browsers (Firefox and Chrome), one for general surfing the web and another just to use Story. Is there a sp
-
Hi , I am creating a Check box in WAD which is a selection variable for a characteristic. I am able to get the display of all the values listed. Problem is : I want to have the list of values displayed with a check mark and I am not able to see where
-
Any applications that I try to download wont. It says I need adobe air installed to download them. I Do have it installed but same message over and over. Have uninstalled it re-installed it and still the same. Working on Vista with SP1 Thanks in adv