Sponsored Content
Full Discussion: A Solaris Question
Operating Systems Solaris A Solaris Question Post 302384469 by cejodrake on Tuesday 5th of January 2010 11:49:18 AM
Old 01-05-2010
Quote:
Originally Posted by jlliagre
Assuming you are using vi as root, use the ":w!" command to save that file.
thank I thought it was problems of privileges ,,
im speak spanish , i liking this forum..

saludos
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Solaris 2.6 question

How do I define a default gateway on a Solaris 2.6 Server. (2 Replies)
Discussion started by: jskillet
2 Replies

2. Solaris

Solaris Network question

I have a machine that has developed a strange network problem. Anytime it sends an FTP file somewherwe, no problem. When it is the target machine, extremely slow. I checked the /var/adm/messages file and found a few of these: SUNW,hme0 : No response from Ethernet network : Link down -- cable... (2 Replies)
Discussion started by: hshapiro
2 Replies

3. UNIX for Dummies Questions & Answers

LDAP in Solaris question

Folks; I've read a lot of material on using LDAP for authentication in Solaris & non of them was clear or have any examples. Could any one give me a hand on how to setup/configure LDAP to authenticate users when they try to login to Solaris 10 server i have? Help will be greatly appreciated (0 Replies)
Discussion started by: Katkota
0 Replies

4. Solaris

Solaris 10 name resolution question

As you can see by the following text, we have a multi-homed host defined in our network: bash-2.05# nslookup ldaptest Server: usat0x40.atd.gmeds.com Address: 10.1.14.14 Name: ldaptest.atd.gmeds.com Addresses: 10.1.16.142, 10.1.16.141 I turned off nscd (didn't think I needed to)... (5 Replies)
Discussion started by: pzxkys
5 Replies

5. What is on Your Mind?

Question on Solaris Cert.

Hi, Last year, I took Solaris 9 part 1 certification and passed. Due to many things in my life I never took part 2. I am ready to take it now. But I see every one is using Solaris 10 now. In my company, we use 10 on few boxes but mostly we are still on Solaris 9. so my question is should... (1 Reply)
Discussion started by: samnyc
1 Replies

6. Solaris

Question on SEMMNI on Solaris

Hi, OS = Solaris 5.10 I need to check the settings of SEMMNI, can't find any /etc/system file and sysdef is not showing me any useful information so I ran prctl -i project default instead. Can anyone please confirm whether the SEMMNI setting is the value as below? zone.max-sem-ids ... (2 Replies)
Discussion started by: newbie_01
2 Replies

7. Solaris

Solaris 9 upgrade question.

I have an old sun v890 server running solaris 9. Apparently we need to be running solaris 10. I don't know much about the server history, there isn't any documentation. I hesitant to rebuild from scratch and loose user configuration settings etc... How difficult is it to upgrade to solaris... (10 Replies)
Discussion started by: Kjons76
10 Replies

8. UNIX for Dummies Questions & Answers

RAID on Solaris Question

Hello folks; I'm trying to install Solaris 10 x86 on SUN X4150 box with 6 disks in it, the question is how can i create a Virtual disk like RAID 0 before i install Solaris. When i boot up i don't see any option to go and create my raid before the installation begin. Thanks in advance for any... (2 Replies)
Discussion started by: Katkota
2 Replies

9. Solaris

Question with Solaris Crash Analysis Tool with Solaris 9

Hello all. I am new hear and would like to ask a question regarding to the Solaris Crash Analysis Tool. We are analyzing the results of "thread summary" but not quite sure what the asterisk represents. Following are the items that asterisk were attached. 50* threads sleeping on a semaphore (49... (1 Reply)
Discussion started by: YuW
1 Replies

10. Solaris

Solaris 11.2 upgrade question

Currently we are having solaris 11.1 SRU 11.1.21.4.1 installed on server. We need to upgrade it to solaris 11.2 SRU 11.2.9.5.0 Is it possible to upgrade to SRU 11.2.9.50 directly by downloading repo files or do I need to upgrade to 11.2 first and then upgrade to SRU 11.2.9.5.0? (1 Reply)
Discussion started by: sureshsun
1 Replies
SHELL-QUOTE(1p) 					User Contributed Perl Documentation					   SHELL-QUOTE(1p)

NAME
shell-quote - quote arguments for safe use, unmodified in a shell command SYNOPSIS
shell-quote [switch]... arg... DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands or files with embedded white space or shell globbing characters safely. Here are a few examples. EXAMPLES
ssh preserving args When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and passes them to "$SHELL -c". This doesn't work as intended: ssh host touch 'hi there' # fails It creates 2 files, hi and there. Instead, do this: cmd=`shell-quote touch 'hi there'` ssh host "$cmd" This gives you just 1 file, hi there. process find output It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote: eval set -- `find -type f -print0 | xargs -0 shell-quote --` debug shell scripts shell-quote is better than echo for debugging shell scripts. debug() { [ -z "$debug" ] || shell-quote "debug:" "$@" } With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can. save a command for later shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are things the user can't pass through), you can do something like this: user_switches= while [ $# != 0 ] do case x$1 in x--pass-through) [ $# -gt 1 ] || die "need an argument for $1" user_switches="$user_switches "`shell-quote -- "$2"` shift;; # process other switches esac shift done # later eval "shell-quote some-command $user_switches my args" OPTIONS
--debug Turn debugging on. --help Show the usage message and die. --version Show the version number and exit. AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions. AUTHOR
Roderick Schertler <roderick@argon.org> perl v5.8.4 2005-05-03 SHELL-QUOTE(1p)
All times are GMT -4. The time now is 04:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy