Tag Info

New answers tagged

2

This command should help you: svcs -l svc:/site/rclocal:default and in result you will see something like manifest /lib/svc/manifest/site/local.xml


1

Have been searching for this myself a while ago but unfortunately I did not succeed in starting Solaris 10 (or 11) using QEMU with sparc64. I stopped trying after I read the page http://wiki.qemu.org/download/qemu-doc.html#QEMU-System-emulator-for-non-PC-targets section 4.3 which states that the emulator is not usable but may boot some kernels.


2

It may be tempting to use eval, but as passwords can contain arbirary chars (which could/would be executed as code, it makes it risky; bordering on a plain-and-simple: "Don't do it!". This works - using arrays. Contents of test file User:blala Pass:blala with spaces: and colons: and $PATH IP:***.***.**.** set -f # ...


0

I'm not really sure if I get the point of your question. At first: IFS is a variable, that contains a separator, like a tab, a space or something. By default it contains a space, tab and newline. EDIT: from a for-loop loop to a while-loop, suggested by terdon while read line do echo $line|cut -d\: -f2 done < /path/to/file.csv This generates ...


0

if you are running Solaris 11, then NWAM builds the /etc/resolv.conf and /etc/nsswitch.conf files are controlled by NWAM. The entries you need should be configured via svccfg commands, then when the network services start/restart, the files will be "created" based on the svccfg settings.


0

In addition to solutions using Perl I decided to try to implement my own mini version readlink using readlink syscall. The source code of the utility using is very simple and looks like this: ret_length = readlink( argv[1], buffer, buffer_size ); if( ret_length >= 0 ) { buffer[ ret_length ] = '\0'; printf( "%s\n", buffer ); return 0; } ...


0

I assume you're refferring to DtTerm. In this case, you're only limited to 16 colors: despite having a nice GUI, DtTerm is inferior feature-wise compared to xterm, rxvt and others. If you want 256 color support in your terminal, pick a recent xterm build (not the one shipped with Solaris). Another option is using gvim with a Motif/Athena/GTK GUI.


3

do not mix zones and zpools concepts Your zones are on top of zpools and these zpools are in suspended. first fix the zpool: Check status zpool status <zpool-name> then depending on the output take the proper action to fix it. Ensure that your devices disks that are part of the zpools are there. Check Oracle Documentation here


4

I can provide you with a perl snippet to do this for you: #!/usr/bin/perl # foreach my $i (@ARGV) { # If it is a symlink then... -l $i and do { # First indirection; ensure that it exists and is not a link my $j = readlink($i); print "$i\n" if -e $j and ! -l $j } } If you save that as /usr/local/bin/if-link and make it ...


0

beadm can be found when Solaris 11 is booted. So first boot the (Solaris) operating system, login as user and then execute beadm. Some features are probably prohibited (like destroy) and only available as privileged user.


0

My guess would be (although I've never done this before, I've always had the nfs mount up first) is that the running user didn't have access until it was reloaded - either it didn't know about it or something along those lines. Never tried this before though so I'm not really sure


0

The less option --follow-name is only part of the solution; To replace tail -F, another argument is needed: less --follow-name +F file.log The option alone like less --follow-name file.log does not actually start following the file updates. You need to enter the follow mode be pressing ShiftF. (Exit the mode to navigate by ControlC.) Instead of following ...



Top 50 recent answers are included