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


ADVERTISEMENT

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

General :: Blacklist A DNS Server Supplied Via DHCP?

Jul 2, 2010

The DHCP server on a network I use specifies a DNS server that I do not want to use. Is there a way to continue to use DHCP but to modify the provided information or to "blacklist" one (of the three provided) DNS servers?

The client in question is running Ubuntu 10.04. Networking is managed by NetworkManager but I'm not wedded to that. In fact, I don't like it and wouldn't mind a reason to use something else.

View 1 Replies View Related

General :: Seeking Shortcut To Execute A Program With A Supplied Local Path?

Sep 14, 2011

A program requires local path property to perform correctly.I'm seeking shortcut command to execute a program with a supplied localPath For example, cd /usr/local/blogrmis/usr/local/blogrmis/remote & remote program requires local path @ /usr/local/blogrmis to run.is there any shortcut which i can do it in 1 line?

View 2 Replies View Related

General :: 2D Modesetting With Radeon Driver Eliminate DRI?

Mar 29, 2010

I have Radeon HD 3870, which is limited to 2D purposes I understand...

Will this mean that I cannot use DRI? Will it have a performance impact in 2D applications?

Does DRI make watching movies on PC 'better'? Especially 720p ones.

View 3 Replies View Related

General :: Eliminate Unwanted Text In Txt File?

Feb 17, 2011

I have a few problem. I have a txt file that convert from pcap to txt file. What I want is to eliminate unwanted text from my txt file. Here is the example of the what I want to do:

This is original file in txt file

Quote:

No. Time Source Destination Protocol Info
1 0.000000 158.27.22.66 61.39.220.82 HTTP Continuation or non-HTTP traffic
0000 00 1f 9e 1a 5b 00 00 21 55 84 9a ff 08 00 45 00 ....[..!U.....E.
0010 05 8c e4 14 40 00 36 06 8d 1c 3a 1b 16 42 a1 8b ....@.6...:..B..
0020 dc 52 00 50 05 12 18 d4 17 f0 64 3f b0 94 80 10 .R.P......d?....

[Code].....

View 6 Replies View Related

Server :: Shell Scripting Command Line / Getting Error While Passing Parameter?

May 6, 2011

I am very new to shell scripting.How does one pass a command-line parameter to a shell script?for the below program
#/bin/bash
mount -t cifs -o user=ramkannan,password=Linux123@ //10.200.1.125/ramkannan /MT
cd /MT/test
date=`/bin/date "+\%Y-\%m-\%d-\%H-\%M-\%S"`
mysqldump -uroot -pram2@ employeedb > $date.sql
gzip $date.sql

I want to pass parameter for everything,i tried in google and did but iam getting error while passing parameter to all

#/bin/bash
mount -t cifs -o user=$1,password=$2 //10.200.1.125/ramkannan /MT
cd /MT/test
date=`/bin/date "+\%Y-\%m-\%d-\%H-\%M-\%S"`
mysqldump -uroot -pram2@ employeedb > $date.sql
gzip $date.sql

i was getting error while passing parameter to all.

View 2 Replies View Related

Software :: SCP Error: Unrecognized Configuration Parameter Permitlocalcommand When Run ANY Type Of Scp Command

Jan 31, 2011

This started happening about 2-3 weeks ago when i noticed our backups weren't running anymore. whenever i try to run ANY type of scp command I get the following error: warning: Unrecognized configuration parameter permitlocalcommand ssh: FATAL: Illegal -o parameter "PermitLocalCommand no" lost connection

I checked the /etc/ssh/ssh_config file and there was a command PermitLocalCommand commented out, but for testing I even totally removed that line and then in scp forced the use of that file via scp -F /etc/ssh/ssh_config ......

and I still get the same error. This command is nowhere is any of my ssh config files so im at a loss here on how im supposed to fix this!! I even checked my home directory for maybe a ssh config file that might be overridding the system config but nothing.

View 1 Replies View Related

General :: Eliminate Ssh Login Delay Without Touching Sshd?

Mar 11, 2011

Whenever I login to a certain server using SSH I get a very long delay before a prompt appears. Everything I looked up on this issue says that it's a DNS issue and that I should disable reverse DNS lookups on the server.

But, the remote server is a shared webhosting server. I e-mailed the sysadmins but they say they have no DNS issue and that they won't change the server configuration. So, how can I fix this issue from my side (client side)? I have a static IP address and a hostname that points to it.

View 2 Replies View Related

General :: Proper Method To Eliminate Previous Boot Images On Kubuntu?

Jul 28, 2010

Every time kubuntu updates its headers/boot image I get another version on disk in /boot. These also show up in menu choices when I boot. I currently have 7 or 8 versions and would like to get down to three or four.

In the past I just deleted the files of related versions from /boot but is this the preferred method? Is there a better/safer way to get rid of old kernels?

View 1 Replies View Related

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 View Related

Ubuntu :: Supplied To Verify The Integrity Of A Downloaded Iso?

May 28, 2011

I am not able to find any information to verify a downloaded .iso file for security and integrity at [URL]../download/ubuntu/download .Are they supplied elsewhere?

View 1 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

OpenSUSE Hardware :: Hybernate Doesn't Work - Getting Error "no Resume Parameter On Kernel Commandline Can't Suspend"

Apr 28, 2011

Hybernate does not work on my laptop. I receive the following error in the log: Running hook /usr/lib/pm-utils/sleep.d/30s2disk-check hibernate hibernate:

INFO: checking for suspend-to-disk prerequisites...
ERROR: no resume parameter on kernel commandline, can not suspend

View 3 Replies View Related

Software :: Warning: Invalid Argument Supplied For Foreach()

Apr 27, 2011

I am trying to duplicate our company website running from Centos 5.5 to another Fedora 13 box. The output is ok but when I tried to open 1 page which automatically search pdf files, this errors appear:

Warning: fopen(help_search/file - file.txt) [function.fopen]: failed to open stream: No such file or directory in/var/www/html/site/index.php on line 1018

Warning: Invalid argument supplied for foreach() in /var/www/html/site/index.php on line 1023

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings.You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Manila' for 'PHT/8.0/no DST' instead in/var/www/html/site/index.php on line 1297

Warning: date()[function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Manila' for 'PHT/8.0/no DST' instead in /var/www/html/site/index.php on

I was just confused because in Centos 5.5 it works fine.

View 2 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

OpenSUSE Hardware :: Installing A Printer Using Manf - Supplied PPD File

Jul 1, 2011

OS 11.4-32bit on an HP Pavilion.

I'm trying to install a Konica-Minolta M5670en printer. The printer is not found in the standard list so I got the ppd file(s) from Konica. There are two potential files: M5670opn.ppd and M5670PX.PPD. As downloaded, they are packaged as either a zip file or as a directory with the zip files unzipped.

Don't, laugh! This is the first time I've had to deal with a printer not already in the database. Which files do I need to use and where the heck do I copy them? When I run Yast printer->add the printer is found on the network and I try to specify the driver - but does it need the .zip file, the expanded directory, or what? So far, I'm not having much luck pointing to the downloaded files - either the zipped or unzipped versions. Yast copies the selected file to /usr/cups/model/download but then complains about file content and dies!

View 5 Replies View Related

Ubuntu :: Finding Information Supplied To Verify A Downloaded .iso For Security?

May 28, 2011

I searched Using my User Name and did not find the post post made for this problem.Still the search using the User name does not return the first post or this.

View 4 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 :: 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 :: 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







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