General :: Have Created 2 Variables Namely Machine And Action?
Mar 22, 2010
I have a following string."machine=IFLMUD5HP0581&group1=Stop"I have created 2 variables namely machine and action.machine should containIFLMUD5HP0581action should containStop
View 7 Replies
ADVERTISEMENT
Jan 19, 2010
I have a file that was created in Virtual Machine Manager and I need to get it out of the virtual operating system(windowsXP). Writing to a USB would be ideal but that hasn't been working since I upgraded to Fedora12.Is there anyway I can mount the image to retrieve the file?wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so mounting as fvat doesn't work either.
View 3 Replies
View Related
Apr 6, 2011
mkvmerge -o <filename without extension>_TV.mkv -S <filename> && mkvextract tracks <filename> 3:<filename without extension>.*** && perl /home/brian/Desktop/ass2srt.pl <filename without extension>.*** && rm <filename without extension>.***
Doing these commands for multiple command line file inputs is the goal. So I can just type ./script.sh *.mkv in my terminal.This is what I have so far, but it doesn't work whatsoever.
View 2 Replies
View Related
Aug 1, 2011
I'm a little bit confused with partitioning the filesystem in Linux. the difference between creating the file system with fdisk and mkfs (when formatting the disk). I can't clearly tell my problem, so please look at this picture:
View 2 Replies
View Related
Feb 4, 2011
I have a server with logs running. People connect to server. This server is running the same application as a failover just in case it stops. I have a doubt that some clients are connecting from different places as the nodeID is changed SO I need to make a script which reads both logs that are called server1.log and server2.log and where it finds a nodeID which does not match in both logs it action with fail2ban
I don't know whether this can be done directly via fail2ban since it is the program which I know that reads between logs but as far as I know it cannot match data with another log
This is an Example:
Code:
Log 1
03:00:08.905 client qwe696s@894b226f7846d9df, running version 2.1
Log 2
03:00:08.905 client qwe696s@894b226f7846d9dd, running version 2.1
Quote:
qwe696s is the username
894b226f7846d9df is the NODEID
AS you can see from the logs nodeid is different
View 5 Replies
View Related
May 2, 2011
I want to know how to set variable in procmailrc action block or condition block I want to set a variable as a random file name to store emails but I don't know how to set a variable in procmailrc action block or condition block .this is my example:Quote:
:0b
* ^FROM.*
{
code]...
View 2 Replies
View Related
Jan 11, 2010
I have security guidelines for my business OS which require me to active screensaver.
Nevertheless, I dislike screensavers because I sometime read a while, but I do not want to go offline from my IM in the meantime.
Anyways, I am looking for a solution. So I though about writing a little shell script (connected with a cronjob), which just moves the mouse every 10 minutes or so.
Unfortunately, I have no clue how to interact with the mouse in a shell script.
View 4 Replies
View Related
Mar 14, 2011
When I try something like
php -i | less
Less is not responding to hotkeys, but prints them like pressing "q" results in statusline
:q
PageDown
:^[[6~
Pressing ENTER like "executes" the keycode and less perfoems the action. Piping trivial small stuff work however... OS: Fedora 14
View 1 Replies
View Related
May 20, 2011
I use the Actions feature of KDE's Klipper utility to run certain commands when I copy something into the clipboard that matches a particular regular expression. Unfortunately, I have to turn on Enable Clipboard Actions and select the command from a menu every time I copy something that I want to run the command on. I'd like to have that command run automatically instead.
You'd think this was possible, as there is an automatic checkbox in the action settings dialog box:
Unfortunately, that appears to do nothing. The documentation included with Klipper does not indicate what that checkbox is supposed to do.
Is it possible to configure Klipper to run a command automatically if the contents of the clipboard matches a regular expression? If not, is there another way to accomplish this?
View 1 Replies
View Related
Feb 1, 2010
I want to use a combination that avoids alphabetic/punctuation characters because that way I have a consistent physical position on different layouts. Control_R+Menu fits that requirement and is also located at a very convenient position.This combination used to work in KDE 3.5 for the global kxkb switch action, or any keyboard action for that matter. In KDE 4, trying to assign Menu by pressing the Menu key always activates the keyboard trap widget's context menu, in this case giving me the What's this?How do I work around that problem? Alternatively, do you have a snippet that I can paste into $HOME/.kde/share/config/kglobalshortcutsrc and which works?
View 1 Replies
View Related
Dec 8, 2010
I want window to be closed when i middle click on the corresponding taskbar item. Can this is be configured in KDE4?
View 1 Replies
View Related
Feb 17, 2010
i recently install openoffice in fedora 12 and error occured the error is : the action could not be completed because the name org.freedesktop.packagekit was not provided by any .service files. what is link to download latest openoffice for my fedora 12,?my laptop model is asus k50in.
View 1 Replies
View Related
Nov 30, 2010
How do you transfer files on a Linux machine with ftp,sftp and scp disabled onto a remote machine
View 2 Replies
View Related
Jul 29, 2009
I successfully installed the virtual box on my fedora 8 system, and also created a virtual machine with windows xp OS, it works nicely, I try to configure the serial port of my virtual machine and try to configure the path for the port "screen shot are attached" it gives me the error message also the "screen shot are attached" for your review.Is kind of mistake is going on during the path setting, and how to set the path for configuring the serial port of my virtual machine so that I can use the hyper terminal tool of windows.
View 4 Replies
View Related
Jul 12, 2010
using variables in CURL.Here's my code:
transfer_to_pcid="AAAAAAAA"
transfer_from_pcid="BBBBBBBB"
basic_password=`ssh rsync@some_test_domain 'curl --silent
[code]....
View 2 Replies
View Related
Jul 14, 2011
I have some file tools on a mint machine that I would rather not install on my mac laptop. Mainly because of the vastness of apt-get and the low risk of installation failure. Anyway, every so often I have a file that I want to process in place using some remote tool. Both machines can ssh right in to each other so I was figuring there must be some script or tool out there that would allow me to type out something like remote [file] [tool & args] to send my file to the other machine, get it processed, then get it back.
View 4 Replies
View Related
Aug 13, 2010
I'm know very little about Linux but decided to set up a machine running Drupal CMS on a Debian machine and it won't go. The folks at Drupal have tried to help but it seems the Debian OS won't do it's PHP thing for Drupal.
That means i'll have to start at the START I guess.
how to become a master of Linux if one is starting from ABC (I can add and subtract, that's what it feels like)
View 2 Replies
View Related
Aug 3, 2010
I'm the Administrating the computers in my office. I want to monitor the user's activity. How can i remote login without distrubing the user's activity on his computer? Any software need to be installed? (I don't want to use Terminal server client).
View 5 Replies
View Related
May 20, 2010
I am running Red Hat Linux Enterprise 5; I am always using the export command to set environment variables.Are there any other ways to set environment variables and what are the advantages/disadvantages of them?
View 4 Replies
View Related
Sep 13, 2010
Is there a difference when variables are referred to as $variableName and ${variableName} in bash?
View 1 Replies
View Related
Feb 17, 2010
in gnuplot it's possible to set the value of a variable via linux shell command.or instance we can do
Code:
a="`echo 1`"
b="`echo 2`"
[code]...
View 3 Replies
View Related
Jan 17, 2010
I have installed RDGEN which comes with VPFIT package. When I run the program it says:
"Failed to find help file"
But I ran the program from its main directory where all the files including help files exist. I think maybe the problem is because of this that THEY say:
"Some environment variables should be set before starting RDGEN".
But I do not know what does this mean and how to do that.
These are the variables:
-ATOMDIR
-RD PRSETUP
-RD PRSETUP
-RDSTART
-VPFSETUP
-VPFPLOTS
Would it be possible for you to tell me what does Setting Variable means in this case?
View 2 Replies
View Related
Jun 4, 2010
I have question regarding concatenation of two variables with underscore.i.e. (bourne shell)
Code:
# var1=123
# var2=456
[code]...
View 3 Replies
View Related
Jun 21, 2010
he $g09root is picked up ( in both the csh and the bash), but not the $GV_DIR or the $GAUSS_SCRDIR. I guess it's some stupid error, but it is highly frustrating.Here is the .profile file:Quote:
# To make use of this feature, simply uncomment one of the lines below or
# add your own one (see /usr/share/locale/locale.alias for more codes)
#
[code]...
View 9 Replies
View Related
Oct 12, 2010
Explain the following unexpected results
$ whereis date
date: /bin/date ?
$ echo $ PATH
[code]...
View 5 Replies
View Related
May 9, 2010
Is there a command that can list the variables that I am using in a script? I mean the variables that I created in the script not the environment or local variables. For example if I have a script that has the following var's like : name=Alex, age=20, postal_code=12345, how can I list them all @ once WITHOUT using echo $name, $age and so on. Imagine I have a lot of variables and i can't echo them all.
View 2 Replies
View Related
May 25, 2010
In the following lines I am trying to replace Puppy Linux 5.0 Released with the content of external variable Var. Following lines are in a file called news
Code:
<A title="Puppy Linux 5.0 Released" href="http://lwn.net/Articles/388754/" rel=bookmark><FONT color=#ffffff size=2><STRONG>Puppy Linux 5.0 Released
</STRONG></A><STRONG> | </STRONG>
I have tried following.
Code:
awk -v var=NewNews '/title="[^"]*/{n+=1}{if (n==1){sub(/title="[^"]*/,"title="$var",$0)};print }' news
But it is replacing Puppy Linux 5.0 Released as $var, not with the contents of var.
View 4 Replies
View Related
Mar 14, 2011
I am trying to rename a list of variables in my script using a second list of variables. I want the variables in the second list to replace the variables in the first list such that the first variable in List 1 is renamed after the first variable in List 2, the second variable in List 1 is renamed after the second variable in List 2, the third variable in List 1 is renamed after the third variable in List 2, and so on.
For example:
I know how to rename each file individually, but would like to run Do Loop which can rename all my output files at once.
View 7 Replies
View Related
Jun 28, 2011
I set a variable before entering the FTP session (vDate). Then it does not seem to resolve when I try to use it in the session as part of an mput command. $vDate resolves as an empty value. Can you point me in the right direction?
View 1 Replies
View Related
Aug 23, 2010
Is there a way I can write a file that contains the text which assigns variables, e.g. string="hello world" in a file say, variables.txt and have a shell script assign those variables locally e.g.
#!bin/bash
command_that_saves_variables_locally variables.txt
echo $string
and when I run the script I would get an output of
"hello world"
View 2 Replies
View Related