General :: What Is 'positional Parameter'?

Mar 21, 2011

I need a simplistic explanation of positional parameter. Have read all I can get my hands in, I kinds of understand to an extent, but I want to get. Full grasp of it. Oils like to know what is does, its functions, when to use it, and all its functions. Thanks in anticipation. Distro Red hat.

View 6 Replies


ADVERTISEMENT

General :: Shifting Positional Parameter Inside A Function?

Oct 19, 2010

I need to shift the positional parameters of a script inside a function, but any call to "shift 1" inside a function shifts only the parameters of that function. Is there some way of accomplishing that? I tried another approach using an alias. The problem is that I have to take the result of the alias. So I call in my script:

Code:

var=$(shiftalias)

At first time, it works correctly, but after that it does not shift the parameters anymore.

View 9 Replies View Related

General :: Don't See -k Parameter In Recent Modprobe (missing Parameter)

May 4, 2010

I got the following modprobe scripts modprobe -k -q streams what does the -k parameter mean?. is it exist in older modprobe? I don't see -k parameter in recent modprobe.

View 1 Replies View Related

Ubuntu :: Positional Parameters Tutorial \ Don't Understand Its Concept?

Aug 14, 2010

need help with the Positional Parameters. I don't understand its concept.If you could give some example or and explanation

View 2 Replies View Related

Software :: Change The Value Of Positional Parameters Inside A File?

Mar 26, 2010

I was wondering if there is a way to change the value of positional parameters inside a file.I mean, i want to change the value of a certain field of a file to the one i provide with?

View 6 Replies View Related

General :: Shutdown Parameter 't' Functionality How-to?

Dec 28, 2010

It looks like the -t parameter is no longer available when using the shutdown command. What I'm trying to figure out is how to send all the daemons the kill signal, but wait a certain amount of time before actually halting or rebooting. I can't be the only one wanting to do this, but for all the searching I'm doing I can't find an answer.The following only warns, then waits 1 minute before sending the kill signal and immediately halting, correct? Or am I getting this completely wrong?

Code:# shutdown -h +1

View 4 Replies View Related

General :: How To Change Kernel Parameter

Oct 11, 2010

i m using following kernal.

Code:

# uname -r
2.6.18-128.2.1.4.9.el5xen

According to security manual i need to incorporate following changes into kernal parameter but i m not sure when and how these changes will be implemented.

Code:

net.ipv4.conf.all.accept_source_route must be set to "0"
net.ipv4.ip_forward must be set to "0" (zero)
icmp_echo_ignore_broadcasts must be set to "1"
net.ipv4.tcp_syncookies must be set to "1"

[code].....

View 9 Replies View Related

General :: Receive Files Sent As A Parameter?

Feb 26, 2011

as $1 $2 represent first and second argument..for example- in a shell script..../commfile file1 file2 file3 now in commfile i want to receive files by running a loop...like

for (i=1;i<$#;i++)
do
cat ${i} //help me here
echo do u want to proceed

[code]....

View 9 Replies View Related

General :: Eliminate Error When No Parameter Is Supplied?

Apr 23, 2011

I am familiar with bash, but my works require csh. in my .cshrc, I created this alias:alias cd 'cd !:1; ls -l' It works very well except for one case: when I cd without any parameter:

cd In which case, I get the "Bad ! arg selector" error. How do I eliminate this error?

View 1 Replies View Related

General :: What Are Implications Of Using 'noapic' Kernel Parameter?

Aug 4, 2010

I recently enabled noapic on my laptop because it was experiencing strange input freezes on several distros that I tried.Ok, so it does not use the ioapics. My question is, what does this mean for the system? If it used apics before, what happens now? I am a freshly graduated computer science major, and I have worked with basics pics on projects before, but I am curious how this effects the running system.

View 2 Replies View Related

General :: Bash Variable As Parameter To Script?

May 10, 2011

I want to create a variable that when passed as a parameter to another bash script will keep its string quotes (so it stays as one parameter). What ways can I achieve this cleanly?

Code:

john@ubuntu:/usr/local/src$ cat foo.sh
#!/bin/bash
echo $0

[code]....

View 8 Replies View Related

General :: Pass Response As Command Parameter?

Mar 10, 2010

I have a backup schedule running a full backup everyday. I'm using webmin to manage these backup now. The problem is when the dump command sends a prompt asking if we want to rewrite the tape, Webmin does not display this prompt and we end up having to terminate the backup -> erase the tape(which takes a long time) and then run the backup again.I was wondering if there is a technique that could be used to pass "Yes" as a parameter to the dump command, much like in windows? or if there is a more efficient way of getting this done.

View 2 Replies View Related

General :: Set Parameter At The Boot Command Line?

Aug 20, 2010

I am following an instruction on the Internet to set up a timer=1. "You can force use of the timer interrupt by using the timer=1 module arameter (or oprofile.timer=1 on the boot command line" When I type "modprobe oprofile timer=1" at the command line, I got a warning message saying that "Deprecated config file /etc/modprobe.conf" So i want to try other way by setting it at the boot command line.

View 2 Replies View Related

General :: What Is Default Kernel Parameter Values

Mar 3, 2010

What is the default kernel paramtre valus for linux RHEL Machine?

View 5 Replies View Related

General :: Adjust The Semmni Kernel Parameter In Fedora 13?

Sep 13, 2010

I've done the usual edit of /etc/sysctl.conf to include the parameter, but it just tosses errors. I haven't had to tune a kernel in a very long time, what's different about it nowadays (or have I simply forgotten how)?

edit: Added "kernel.semmni = 2048" to the tail of /etc/sysctl.conf and then ran "sysctl -p". End result is an unknown key error (apparently kernel.semmni isn't the valid name anymore?).

View 2 Replies View Related

General :: Boot - Maximum Vmalloc Parameter Size?

May 31, 2011

First off all, I'm booting from a large MEMDISK using PXE (900MB) . Due to our environment, I cannot decrease the size, nor move files to a nfs/iSCSI/... environment. Everything needs to be in that MEMDISK.

Now, when I try to run the OS, I get out of vmalloc space. How do I increase it to a number which allows such a large image to be mapped? I tried the parameter "vmalloc=1280M", but with that parameter, I don't get past the Booting the kernel screen.

Memory should not be an issue, since the machine(s) have at least 2GB RAM. (900MB MEMDISK + 256MB for other kernel stuff + 768MB for user stuff). The machine(s) have a Pentium 4 Extreme Edition processor, with hyperthreading and SSE2, but no EM64T.

How can I boot the system, and get past that message? Decreasing the MEMDISK size is not possible too. It is at the smallest we can get with our userland + kernel + modules.

View 1 Replies View Related

General :: Grub: Kernel Parameter RO But Filesystem Still Gets Mounted Rw?

Jan 13, 2010

I am trying to do a fsck on my ext3 partition, but so far failed to let the system come up in single user mode and having the partition mounted read only. It says in the kernel parameter that it is read only (RO) but still mounts it RW. A remount with mount -o remount,ro does not work, since / is always busy. what to do to get a fsck done? I don't want to boot into a rescue system, this should be possible on a running system (like Windows does it, when rebooting)

View 1 Replies View Related

General :: Count The Right VGA Parameter Number For Grub To Use Another Resolution?

Dec 13, 2010

I am using grub of version 2, and current resolution vga=795 (probably). X runs at 1680x1050. So what I would like to know is, how can I count the right VGA parameter number for grub, to use another resolution?

View 11 Replies View Related

General :: Pass Options To A Kernel Module Through The Boot Parameter?

Nov 4, 2010

I have an issue that is fixed by changing the lpfc driver to run using MSI interrupts. This is done by adding "options lpfc lpfc_use_msi=2" /etc/modprobe.conf.local file.

Is there a way to make this change using kernel boot parameters?

View 1 Replies View Related

Programming :: Parameter Passing: Parameters In General Info Requested

Apr 26, 2010

Ive read a few books and a lot of tutorials on C but can't find this topic explained in a deliberate way.I can find bits and pieces but nothing thorough.

View 9 Replies View Related

General :: Bash: Substitute Parameter In A Quoted String - Stored In Another Variable

Jan 31, 2010

(variable substitution?)
(parameter expansion?)
Code:
run_repeatedly()
{
NUM=0
while [ <irrelevant stuff here> ]
[Code]....

run_repeatedly "programX -o "./messy/path/output-$NUM.txt"" The echo inside the loop prints "...-$NUM.txt"; obviously I'm aiming to have bash substitute the iteration number so that I end up with many output files not 1.

View 5 Replies View Related

General :: Gnome-terminal Exits After Executing Parameter Sent With "-x" Option?

Aug 30, 2010

I have a bash script that launches an application of mine through a gnome terminal with the following command:gnome-terminal -x MyApplicationIf MyApplication launches correctly, a GUI is displayed. If it fails to launch correctly, it reports errors to stdout (the terminal).
My problem is, the terminal immediately exits when MyApplication exits, leaving no time to see the error messages if MyApplication fails to launch.You can also see this behavior by trying:gnome-terminal -x lsThe gnome terminal immediately exits.Is there a way to stop this behavior? I want the terminal to remain until I close it.

View 6 Replies View Related

General :: "shutdown" Command Allow A Parameter To Determine The Pause Between Sending SIGTERM And SIGKILL?

Jan 1, 2011

The man page seems to indicate no. There is /etc/rc.d/init.d/halt on Fedora. It has a hard coded pause in it, but there's got to be a better way than to change that script.

View 2 Replies View Related

General :: Use Output Of Previous Command As Parameter To Another Command?

Nov 13, 2010

I want to use the output of a previous command as a parameter to another command. For example: to know where "nice" is stored i typed: which nice output: /usr/bin/nice now the second command i typed is: ls -l /usr/bin/nice Is there a way to have a single command like: ls -l which nice ?

View 4 Replies View Related

Red Hat / Fedora :: Parameter Sent To Script That Are Resources?

Apr 1, 2011

i have 2 front ends that receive traffic (http server) and should run some scripts in crontab, some of the scripts should just being running by 1 server at a time (active one) and others should run on both. Regarding the http like is load-sharing i think i cant use heartbeat, right? heartbeat is just for active-stanby or can we use to a active-active as watchdog? i have a cisco css to load sharing the http, and i can make a watchdog script to the apache. Regarding the cron crontrol i was thinking to make a script that replaces the crontab file to whatever is the correct one.

When the heartbeat start what parameter is sent to the script that are resources? a start if active node and nothing if is the standby?allways start?how should i config the haresources to do it? what is the best way? i have other situation that is making a nfs server in solaris 10, i have 2 servers with shared disks ( sun array), can i use heartbeat to this too? it is possible to make it in such way that if i had i failover in nfs server the clients doesn't need to reconnect?

View 2 Replies View Related

Programming :: Parameter Passing In The HTML?

Jun 11, 2010

If I have the following links in HTML

Code:

<a href=lang.php?lang=cymraeg>Cymraeg</a>
<a href=lang.php?lang=english>English</a>

and lang.php has a link to page2.html, how do I pass on the value of the lang parameter from lang.php to page2.html? The value needed is the one passed in to lang.php.

View 3 Replies View Related

Ubuntu :: Changing Console Resolution Without Vga Parameter?

Mar 4, 2010

Let's start with some context: About a week ago, I saw in the university computer that the text mode consoles(ctrl+alt+f[n]) worked with a great resolution on a 19" wide screen (I think it is 1440x900) running fedora 11. So I wondered if I could make the text consoles at home to work with a good resolution also.So I started to search for that and found the kernel parameter vga= . The problem: it doesn't support 1440x900 or any other 16:10 resolution for my graphic card. Then I thought that maybe fedora uses some module that allows that, because the livecd allows a good resolution (by default) on my desktop computer.

What I thought so far is that fedora is not using vesa for the virtual console (which i think is the driver that ubuntu uses) and I want to know what driver it is and how to use it in ubuntu (either compiling the kernel or simply installing something).I don't even know if my guesses are right or not. But I've gathered some info so far:From /var/log/messages (fedora 12 livecd) I got this part, which I think is the really interesting one.Quote:

Mar 2 22:37:18 localhost kernel: [drm] Initialized drm 1.1.0 20060810
Mar 2 22:37:18 localhost kernel: [drm] radeon defaulting to kernel modesetting.
Mar 2 22:37:18 localhost kernel: [drm] radeon kernel modesetting enabled.

[code]...

View 2 Replies View Related

Ubuntu Installation :: How To Add A Kernel Parameter In Grub2

Apr 16, 2010

I have not dug into Ubuntu for almost a year now (Since Jaunty, really). I am trying to come to grips with Grub2, but have just now encountered it in Lucid. I am having a terrible time with the graphics chipset, and it may well be that Ubuntu cannot be used on this computer (an older laptop with the dreaded Intel 82845G graphics chip). There are a number of older bug reports that it is unsupported, but some success in more recent versions.

Anyway, one suggestion has been to add i915.nomodset=1 to the kernel boot line. Now, this was a cinch in Legacy Grub, but I have been reading Grub2 wikis and tutorials for two days now, and I know about the config files, but I cannot find anything which tells me specifically how to add a parameter to the kernel boot line.

View 2 Replies View Related

Ubuntu :: Shell: Dirname With Variable As Parameter?

Jul 31, 2010

Code:
a=/this/is/a/dir.txt
dirname $a

[code]....

View 2 Replies View Related

Ubuntu :: Boot Parameter Meanings And How To Implement

Jan 23, 2011

There are several boot parameters shown when pressing the F6 key on the Ubuntu Maverick Alternate install CD. For example: ACPI=OFF

NOAPIC
NOLAPIC
NOMODESET
EXPERT MODE

Where do I find a "complete" explanation of what these parameters do, when it is appropriate to select them and HOW to select them?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved