Ubuntu :: Positional Parameters Tutorial \ Don't Understand Its Concept?
Aug 14, 2010need help with the Positional Parameters. I don't understand its concept.If you could give some example or and explanation
View 2 Repliesneed help with the Positional Parameters. I don't understand its concept.If you could give some example or and explanation
View 2 RepliesI 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 RelatedHere is a link to atutorial which mentions following use of ReWriteRule is wrong.
Code:
RewriteEngine On
RewriteBase /
[code]....
I am here looking for some abstract and easy to understand resource for "Exokerel" CONCEPT of Computer Operating Systems.[URL] seems some what more complex then expected [URL]
View 1 Replies View RelatedI 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 RelatedI 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.
I am Student of RHCE. I have only one machine at my home. to do practice I want Server - Client environment. So Can i use visualization concept? If yes How?
View 3 Replies View RelatedI've several questions to ask: Why do some files have black arrows pointed outward in my file system? Why are some files in compressed form, e.g. initrd.img?? How are such files used by the system??
View 2 Replies View RelatedWe have designed a board with Cirrus Logic(arm) processor, A Flash memory and some other peripherals have been connected to that. While building kernel we have selected MMU support. We have written few custom drivers for keypad,LED,LCD. But I would like to know how virtual memory mechanism can be helpful here even though there is no any hard disk has been connected. Where will be the virtual memory reside.
View 2 Replies View Related# Filename: makefile2
# Usage: make-f makefile2
# Description: Maintains all the dependencies between modules using the
# Agenda1.
CC=g++
CFLAGS=-c -Wall
LDFLAGS=
SOURCE_MODULES=main.cpp factorial.cpp hello.cpp
OBJECT_MODULES=$(SOURCE_MODULES:.cpp=.o)
EXECUTABLE=programa1
all: $(OBJECT_MODULES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECT_MODULES)
$(CC) $(LDFLAGS) $^ -o $@
.o: .cpp
$(CC) $(CFLAGS) $< -o $@
I am suppose to explain the dependencies that exist and each of the following lines of makefile. Lists orders to be executed as a result of running the make utility on it.
Now that I have setup a proxy server, as a next step I want to run it in fail-over high availability mode, so that if one proxy is down due to any reason, second proxy should automatically be up and start serving requests.
View 3 Replies View RelatedI am using Red Hat Linux 4 .There are some few questions in my mind related to umask. I want to know that is the default file and directory permissions ?
- When we use umask (022) command in terminal. and create a new file then the permissions applied for new file is for that session and when the system will reboot linux will take automatically its default permission from etc/bashrc or /etc/profile ?
- Can we make our own umask or the professional way is to follow 022 only ?
- What is the benefit of umask in Linux?
Can someone recommend a good c++ tutorial? I'm not a n00b but i'd prefer something that is directed toward people who have absolutely no experience with coding. code...
View 1 Replies View RelatedI cant understand y there is no dock option in this
View 4 Replies View RelatedI'm in way over my head and have absolutely no idea what I am doing.I set up a lamp server earlier today on ubuntu 10.10 and I'm trying to upload files to wordpress which I installed at local host using vsftpd. I am so lost.Something about this entire process has not clicked in my head;
View 1 Replies View RelatedI don't understand the output from 'free' cmd.
[Code]....
WHy in first line in columns representing 'used', 'free', 'buffers', 'cached' are such values? I can't count them properly.
I am a linux newbie (more so with using RedHat). I am trying to use yum to install packages, but have never really able to get this thing right. I want to install libXp-devel package. However, running yum install libXp-devel doesn't work.
When I downloaded the rpm for libXp-devel and tried to run yum install libXp-devel-1.0.0-8.1.el5.x86_64.rpm, I get the following:
Code:
Resolving Dependencies
--> Running transaction check
---> Package libXp-devel.x86_64 0:1.0.0-8.1.el5 set to be updated
--> Processing Dependency: libXp = 1.0.0-8.1.el5 for package: libXp-devel
--> Processing Dependency: libXau-devel for package: libXp-devel
[code]...
a lot of log file store in location /var/log/ but how to understand what the meaning in side the log file recorded down? how to find out the problem from the log file?
View 2 Replies View Relatedany tutorial which helps in boosting system speed by recompiling the kernel
View 9 Replies View RelatedI am anticipating that someone could give more further information about that, not only simple explanations. How to understand User Time, sys time, wait time, idle time of CPU
View 1 Replies View RelatedI already figured out the basics of gtk2-perl, but i can't find a good tutorial for things like lists, scrolling viewports, drag n' drop, etc.
I guess any programming language is OK because it shouldn't be hard to translate it into Perl.
I am looking for guides and tutorials on stetting up Ubuntu as a home server. Not so much web server oriented, but more for video/music streaming, torrent download, backups, VPN, remote desktop, etc.
View 3 Replies View RelatedI've spent some time trying to get my 3G card connection shared over WIFI and despite the number of sites out there I had a lot of problems putting it all together. So I wrote a small guide about it, but due to several issues (time/bandwidth) I can't retest it from scratch.I was wondering if someone could take a look at it and make suggestions or corrections.The idea is to take your 3G data card and turn your WIFI into an access point so you can connect other devices to it for internet access.
View 6 Replies View RelatedFor compatibility reasons, a developer do not always need the newest software version that just poped up on the market.
In my case, right now, the WebDriver Test our Selenium Test framework doesn't work on Firefox5 that i automatically got thanks the Ubuntu Update manager. I had to search few hours on Internet and finally ask a more experimented college which told me about this solution:
first of all, uninstall firefox5:
Code:
sudo aptitude purge firefox
then, you can list the available software versions : sudo apt-cache policy <software_name>
Code:
msauvette@msauvette:~$ sudo apt-cache policy firefox
firefox:
Installed: (none)
Candidate: 4.0+nobinonly-0ubuntu3
[code]....
(inside R) I am using system.time function to measure the execution time of two functions
> system.time(lapply(seq(1:1000000),returni))
user system elapsed
0.982 0.100 1.057
[code]....
In the beginning there is MBR. MBR looks for the active partition and tranfers control to the VBR of the active partition. MBR is where grub may be installed. which allows the user to choose an OS(a VBR) I am not sure what the program in the VBR does,but it manages to loads the OS. What am I trying to do: Backup. I ma tired of losign my partitions my bootloaders. I want to backup them all! partitions/MBR /VBR everything short of creating an disk image.
My questions:
1. say the ubuntu partition is formatted, will grub still load? if not is there a bootloader that would?am I making sense? i hope so...
2. what exactly does the VBR contain ?
2. How do I go about backing up? The mbr and the partiton table are backed up with a simple dd command. Then what else needs to be backed ? VBR's of every partition?
I have taken putty session of a server from two separate machines namely HOST1(3 sessions) and HOST2(1 Session) . However w command says there are 5 users
Code:
# w
09:29:36 up 34 days, 15:48, 5 users, load average: 0.62, 4.33, 8.16
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/17 HOST1 09:18 4:26 0.01s 0.01s -bash
root pts/18 HOST1 09:27 1:21 0.00s 0.00s -bash
root pts/21 HOST2 09:29 0.00s 0.00s 0.00s w
root pts/20 HOST1 09:29 1:39 0.00s 0.00s -bash
This problem is occurring on Red Hat EL 5 WS. However, I have two CentOS 5 systems, with similar configuration to RH EL 5, where this problem does not occur.
I am getting this error:
Can't exec "sendmail": No such file or directory at ./0logwatch line 1018, <TESTFILE> line 1.
Can't execute sendmail -t: No such file or directory
Well I get my other 2 questions answered , I have one last question that has been buggy me.Anyone know why windows use so many files just to keep the OS going and so bloated? The under line of files of windows is messy and loads self every where and very bloated with windows and windows vista and windows 7 very much so.I'm not sure if Linux /Mac OS X is like this or not .
I know windows needs to support alot more software and hardwar but is that not where drivers come in for the hardware.And programmers need to write the software for windows or Linux / Mac OS X.
I write a little script by bash.
#!/bin/bash
a=`gawk '/Iterations /{print $0}' hoge.log | gawk 'BEGIN{FS=" "}{print ($4)}'`
a=`expr 3 '*' $a`
[code]...