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
ADVERTISEMENT
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
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
Apr 23, 2010
I can't write to directories inside my main file system. This is annoying, how to change?
View 3 Replies
View Related
May 31, 2010
I need to do a script to change the background image. I can do this with this command
PHP Code:
[Code]....
that work's fine but i need send some parameters to the background image
1)I need to set the style(mosaic, center, etc)
2)I need to set a color(because the image is smaller than the resolution)
I can't find how set this two parameters
View 2 Replies
View Related
Aug 10, 2011
I have a mental block whenever I'm confronted with anything to do with grub2. Changing things in menu.lst was SO much simpler....
I want to include the command 'acpi=off' - but where do I put it? Can I change the detail of an existing grub entry in this way, or do I have to create a complete custom menu entry in grub.d and include it in that?
View 2 Replies
View Related
Sep 19, 2010
I want to change parameters of a RED queue during the simulation but it seems that some parameters can be modified only before starting the simulation, not dynamically, while the simulation is in progress. For example the following subroutines works before $ns run command but it do not change the behavior of the queue during the simulation( I want to change maxthresh_ and thresh_ after $ns
run command): Code: proc setREDParameters { redQueue MINth MAXth PER_MaxP Wq } {
$redQueue set thresh_ $MINth
$redQueue set maxthresh_ $MAXth
[code]....
View 1 Replies
View Related
Feb 16, 2011
My question is about TCP parameters in Linux. By now, I want to change the default values of:
Initial Timeout
ACK Delay
Idle Connection Timeout
I have a Linux Box with kernel 2.6.x and 2 ethernet interfaces. I know TCP is a stack that doesn't have anything to do with ethernet devices. Said that, the question: is there a way to set custom values for each interface? For example, a server listening to connections in eth0 would use one value for Idle Connection Timeout and another server listening to connections in eth1 could use a different value for that parameter.
View 4 Replies
View Related
Mar 24, 2011
I'm using Logitech WebCam on fedora 11 and running webcam server to capture the images on the browser.. it works fine but the image quality is poor...could anyone suggest me how to change the image quality by passing parameters via command line??I tested Video quality on cheese as well, which is poor too..I searched a lot in google for a solution but no use... i got some patch but couldn't install that since the gspca driver on my fedora 11 is in-built..
Output of lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 020: ID 046d:092f Logitech, Inc. QuickCam Express Plus
[code]....
View 14 Replies
View Related
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
Mar 23, 2010
I just installed Fedora12 in a Core i3 machine... everything looks fine, but I have a huge problem... every time I upload a file (using ftp or sftp) some wier characters are included inside the file... for example.
[Code]......
View 6 Replies
View Related
Oct 24, 2010
I have a Java program (minecraft server) that needs to be run from the command line. The code is:
Code:
java -Xmx512M -Xms512M -jar minecraft_server.jar nogui
To make life easy (i've got the java file in a folder on the desktop) I want to have a shortcut (or similar) sitting on the desktop. I've tried
Code:
ln 'java -Xmx512M -Xms512M -jar minecraft_server.jar nogui' ./../minesraftserver
with single and double quotes but my unix command line skills are pretty basic and this is obviously incorrect.
View 2 Replies
View Related
Nov 3, 2009
what I am trying to do but I am not sure exactly how to do it. I want to write a shell script that will replace certain values in a file with environment specific information that it pulls from a parameters file. The paramaters file looks like the following...
[dev]
ip=10.15.109.41
name=dev1.mydomain.com
[code]...
View 4 Replies
View Related
Jan 17, 2011
ok trying to use grip but it keeps giving me this messageCode:No write access to write encoded fileso i have a folder in my home folder called flac and i want to modify the folder so that all files within can be written toi have tried
Code:
chmod -R 777 flac/*
and
[code]....
View 9 Replies
View Related
Jun 7, 2011
I am running Windows 7 inside Virtual Machine Manager - running on Cent OS 5.6. My problem is that the Windows 7 'Window', is only about half the size of the screen. Is there any to change the resolution of the OS running inside Virtual Machine Manager?
View 6 Replies
View Related
Jun 28, 2010
I am wondering if it would be possible to change the top and bottom panels in gnome to black but leave the panels in apps, like the ones which all my Firefox buttons and file, edit and view etc menus rest upon shown below, grey as they are now?
My current system >> appearance >> colours config:
View 4 Replies
View Related
Dec 12, 2010
I would like to change the permissions for a directory and all files inside the directory how do I do this? The website is located only on my local network so I am not worried about security. Also what would be the optimal permissions for running wordpress.
View 1 Replies
View Related
Dec 8, 2010
According to the man page, the "recent" match of iptables accepts certain parameters (e.g. "ip_list_tot"). I'd like to change the values of some of them.
All the solutions found on the web were about changing parameters for module, but my kernel was compiled without modules support (such that it can be used for installation booting as well).
How can I change the match parameters for my non-modular kernel ?
View 2 Replies
View Related
Feb 2, 2011
I have a Python script that I run which needs to execute under a special environment, so I would run the program like so from my working directory (~/project/src):
python manage.py shell
This opens up an interactive shell for me to start typing my own commands.I have another set of administrative activities that I would like to house in another directory (~/project/admin). The manage.py is really finicky about running from the working directory. So, to make this whole thing work, I made a script which starts off like so:
#!/usr/bin/python ../src/manage.py shell
There are a couple problems with this. The first is that it doesn't work:
/usr/bin/python: can't open file '"/../src/manage.py" shell': [Errno 2] No such file or directory
How do you specify multiple parameters to the interpreter?How do I change the working directory?
View 2 Replies
View Related
Nov 9, 2010
I have a text file that needs to be updated to be used by some fortran code later. it looks like that:
1,1 !Ms for y-stations, Ns for x-stations
0,0,0, !xsta, ysta, zsta
I need to replace the "0,0,0" with new values for xsta,ysta and zsta;
View 4 Replies
View Related
Oct 23, 2010
I would like to create an unattended install ubuntu 10.10 cd. I have followed the ubuntu [URL].. on creating the preseed file, however, I can't find any useful tutorial on how to set the kernel parameters to perform an unattended install using my preseed file.
View 1 Replies
View Related
Mar 3, 2011
I have a linux.img image for ubuntu.I want to edit file inside it, how can open it, edit a file, then remake the bin file?
View 7 Replies
View Related
Jul 29, 2011
I have a custom file, that is created by a X (not known) program. I would like to "try" to read one of the files it creates. Of course one way is to try to open it from c or java and try to see what is inside the file. For that I have to do a few retries with different data types.
Thus I was thinking if there is any program, that can facilitate this checking by reading the file with all the different ways fast.
View 9 Replies
View Related
Apr 13, 2011
I want to read content of a file inside a gawk script.I know that by using "gawk -f filename" I can read a file, but I want to do that inside the script.
View 7 Replies
View Related
Nov 16, 2010
I saw this forum post and I want to try it out so I went here and copied and pasted the following text into a file called test.patch.
Code:
---
Documentation/kernel-parameters.txt | 2
drivers/tty/tty_io.c | 1
include/linux/sched.h | 19 ++++
init/Kconfig | 12 +++
kernel/fork.c | 5 +
kernel/sched.c | 25 ++++--
kernel/sched_autogroup.c | 140 ++++++++++++++++++++++++++++++++++++
[Code]....
1 out of 1 hunk FAILED -- saving rejects to file linux-2.6/Documentation/kernel-parameters.txt.rej I'm not so good with patching so I am sure it is probably something easy.
View 7 Replies
View Related
Jun 1, 2011
I have logged on to a system with ssh and there is no scp present on both the systems. How to copy a file without using the scp program.
View 3 Replies
View Related
May 7, 2010
Is there any way i can find a file with specific word inside it.For example if i want to find a file which has some text written inside it.How would i form a command to search them?
View 5 Replies
View Related
Apr 2, 2010
What I'm trying to do is grep [mysqld] from inside my.cnf and then add lines inside the file should they not be there. how do i do that?
View 3 Replies
View Related
Sep 10, 2010
i'm a new Ubuntu user and starting with programming, i've already installed XAMPP for LINUX at /opt directory and the Eclipse app to code php, java etc.When I try to write or create a file inside htdocs XAMPP directory the Eclipse outputs this message to me:"Parent of resource: /opt/lampp/htdocs/site/includes/include.php is marked as read-only./ opt/ lampp/ htdocs/site/includes/include.php (Permission denied)"Whats the matter with this possible error?
View 7 Replies
View Related
May 18, 2011
Howdy, I just installed a dual boot on my Acer Aspire One and it runs great. I was wondering is there anyway to access the files from either side? If so I can't see the XP file system from the Ubuntu system.
View 9 Replies
View Related