Red Hat / Fedora :: Variables Within A Sub Menu?

Jun 9, 2011

search_proc () {
outputfile3=$3
clear

[code]....

View 4 Replies


ADVERTISEMENT

Ubuntu :: Bash Script With Variables And Editing Variables

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

Fedora :: How To Set Environment Variables

May 18, 2010

I just installed valgrind on my Fedora12 machine.

$ valgrind // 1
$ valgrind: Command not found. //error
$ /usr/local/bin/valgrind // 2 works fine

[code]...

View 3 Replies View Related

Fedora :: Changing Environment Variables?

Oct 11, 2009

How do I edit my .bash_profile so recursive directories are on my path without manually typing all the directories? For example, I want to have /home/woodenbox/SU, /home/woodenbox/SU/bin, /home/woodenbox/SU/bin/src, etc on my path without actually having to write the paths for all the subdirectories

View 3 Replies View Related

Fedora :: X11 DISPLAY Variables And Firefox 3.6?

Mar 31, 2011

I have an elementary question: how can I determine the X11 addresses of my two displays? I am using an ATI card that splits the video signal into two VGA signals which correspond to two displays. I'd like to open one Firefox profile on one display and a second Firefox profile on the other display. So

Firefox --display=:0.0 -P Profile1
Firefox --display=?? -P Profile2

Currently :0.0 opens Firefox in the display my terminal is showing on. I figure there is a linux command to help me determine which X11 addresses are available to me but I haven't come across it yet.

[Code]...

I'd like to have one Firefox window open up on DVI-0 and a second Firefox window open up on DVI-1.

This would be very useful for me. It would mean that I could use 1 PC rather than 2 PCs for these two Firefox windows that I will eventually display on separate TVs.

View 1 Replies View Related

Fedora :: How To Set Environment Variables Permenently

May 3, 2011

How to set JAVA_HOME environment variables permanently such that it will not have to be set each time it has to be used.

View 5 Replies View Related

Fedora :: How To Keep Script From Over Writing Enviornmtent Variables

May 2, 2010

#! /bin/bash
#SCRIPT FOR DISPLAYING INODE, FILE PERMISSIONS ETC OF COMMAND ARGUMENTS
for data in $@
do

[code]....

The sript above is executed:-

./script file1 file2 file3 file4 file 5...

The error is that instead of showing the inode etc, of the ALL FILES IN COMMAND LINE ARGUMENTS, THE SET COMMAND OF LINUX OVER WRITES THE $@, so only "ls -l' of 1st commadn argument(file1) is displayed. The script should display it for every file in linux directory.

View 5 Replies View Related

Fedora :: Script Unable To Set Environment Variables

Nov 24, 2010

I've never done much scripting myself and I'm quite unused to the bash as well, but anyway, Here's my problem.

I've a script which is supposed to set some environment variables, using export. However, if I check those variables using echo, they appear not to be set (they are empty). If I set the same variables manually, everything is fine, of course, but I don't want to set them each time manually.

View 6 Replies View Related

Red Hat / Fedora :: Permanently Setting Environmental Variables?

Aug 6, 2010

I installed Java on a server and anytime I have to start or stop a service that requires the $JAVA_HOME variable I have to manually set it with the export command such as: Code: export JAVA_HOME=/usr/java-jdk1.6.0_21 How can I permanently set this variable?

View 3 Replies View Related

Fedora Servers :: How To Set Tomcat Environment Variables Permanently

Dec 24, 2009

I am new to Linux. I installed JDK and Apache Tomcat recently but the problem is every time I want to work with them, I have to set the environment variables. I want to run tomcat as a service so that I don't have to set those system variables every time.Can it be done in any way? I am using Tomcat 5.5 and my Kernel version is 2.6.21-1.3194.fc7.

View 3 Replies View Related

Fedora Installation :: Blueman 1.21 - Adjust Environment Variables

Mar 24, 2010

I am trying to install blueman on fedora 12. I am compiling it from source. Because their is no rpm file for this. In configuration their is error

bluez is not find..but I have installed bluez-4.57...
Error is:-
Consider adjusting PKG_CONFIG_PATH environment variables if you installed software in non standard prefix.. set evn variables BLUEZ_CFLAGS and BLUEZ_LIBS...

How can I set these variables..to get rid of this error. I want to connect to internet through GPRS enabled phone through bluetooth. Any other way to connect to internet through bluetooth. I am using fedora 12.

View 3 Replies View Related

Fedora :: Add/delete Modify The Menu System On The Menu Bar?

Mar 20, 2011

How do I add/delete modify the menu system on the Fedora Menu Bar, i.e. If I want to add a custom menu to the "Applications/Office" menu how do I do it?

Fedora Core 14 On Gnome 2.32.0
(Linux xxxxx 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux)

View 4 Replies View Related

Red Hat / Fedora :: Cant Find Preferences Menu In The Settings Menu?

Oct 8, 2009

Iam pretty new to Linux.I installed fedora 10 on my pc recently.I wanted to add a program to the startup menu but I cant find Preferences menu in the Settings menu. Iam writing to this form after a lot of googling.Hope I can find some answer here

View 2 Replies View Related

Fedora :: Why GRUB Does Not Display Menu Based On Grub.conf/menu.lst

Jul 28, 2009

I am testing my crash recovery strategy for my linux system and I am having trouble with GRUB. I am basically restoring my backup (i.e. tar) unto a different hard drive, but I am having problems getting the machine to boot without me having to type the GRUB commands at the GRUB prompt that is presented when the machine boots up off the new hard drive. I have tried to restore the MBR in two ways (the 2nd one is the one that gets me to the GRUB prompt):

1. Get the MBR off the original drive and write it unto the new drive (all via dd), but that did not work at all: the machine hangs right away during boot up. It seems to hang right at the point where the BIOS tries to read the MBR.

Code:

On original drive:

# dd if=/dev/sda of=mbr+part.bin bs=512 count=1

On new drive (new drive is now in place of original drive):

# dd if=mbr+part.bin of=/dev/sda bs=1 count=446 conv=notrunc

2. By using the FEDORA rescue CD, I installed grub unto the new hard drive as follows:

Code:

# chroot /mnt/sysimage
# grub-install --root-directory=/boot hd0

reboot and remove FEDORA CD Using the 2nd option above, I get the GRUB> prompt during bootup. I can then boot into the system by issuing the commands that are in the menu.lst file, followed by the "boot" command. However, I would like for those commands to happen automatically, just like in the original configuration. It seems to me that GRUB is actually finding all its stage files because I doubt the GRUB program (the one displaying the prompt) fits entirely in the 446 bytes it has on the MBR. So, it must be loading its stage 2 (and stage 1.5??) files from my /boot partition. However, if GRUB is loading its stage files off the boot partition, why does it not load/read the menu.lst/grub.conf contained in the boot partition also?

Code:

# ls -l /boot
total 22888
-rw-r--r--. 1 root root 1274567 2009-05-27 16:39 System.map-2.6.29.4-167.fc11.i686.PAE
-rw-r--r-- 1 root root 1274538 2009-06-16 22:27 System.map-2.6.29.5-191.fc11.i686.PAE

[code]....

View 3 Replies View Related

Fedora :: Associate The Windows Key On My Keyboard To The Fedora Applications Menu?

Feb 22, 2010

I want to associate the other short-cut keys - like pause, play etc. How can that be done?

View 2 Replies View Related

Ubuntu :: Using Variables In Hostname?

Aug 27, 2010

I'm have been tasked with created a base Ubuntu image that can be used for cloning to multiple machines. As this is a network environment, each hostname will obviously need to be unique. Rather than manually changing the hostname each time a new, cloned machine is rolled out, I was wondering if there is a way to use a variable in the hostname (i.e., use a variable to truncate the the last 6 digits of the MAC address to the end of the static hostname--or any other unique variable for that matter--so it would look like hostname00E6D4).

View 7 Replies View Related

Ubuntu :: Using Variables In Awk IF Statements?

Nov 2, 2010

I have a list of names (testnames.txt) and I have a set of log files (testlogdata.log). I'm trying to search the column in my log file for each of the names in my testnames.txt file, and output the result to individual files, name1.txt, name2.txt, name3.txt, etc the names in the column of my log file can appear in different formats , ie the name "Tom Smith" can appear as "tom_smith", "tom-smith", "ACME/tom.smith", "ACME/thomas.smith". etc. To allow for the variations, I have my names in the testnames.txt as expressions, ie, for tom smith, I use the expression "to.*smith", etc.I'm running the following command:

for i in $(cat testnames.txt); do awk '{if ($9~/$i/) print $0}' testlogdata.log > $ioutput.log; done

I want the command to read a value for i, insert it into the if ($9~/inserted value for i/, and dump each line from testlogdata.log into a file named <value-for-i>output.log.

View 4 Replies View Related

Ubuntu :: Subtract Two Variables In Awk

Feb 11, 2011

Turns out I don't have bc in my Ubuntu distro and I can't install it. how to subtract two variables (BASH variables) from awk and set the result as another variable, e.g: finalvalue=`awk '{print $first - $second}'`

View 2 Replies View Related

Debian :: Compare Two Env Variables ?

Feb 8, 2010

I have a certain number, let's say $n, of input files *.inp for a software i use.

For each of them I'll get an output file, *.out.

These output files are, all together, an input for a second software I use.

For this reasons, I collect all the output files in a folder, let's say pop_folder.

Before I run the second software I have to make sure that the first one runs successfully and all .out files joined the pop_folder.

I'm trying something like that:

It seems that my if condition is true despite the actual values of $n and $m.

View 3 Replies View Related

General :: Using Variables In CURL?

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

General :: In Nautilus Show Context Menu On Focused File When Press Menu Key?

Apr 11, 2011

In Windows Explorer, if a file is focused, press Menu Key on keyboard, context menu will show on top of the file. But in Nautilus, the same action shows context menu where the mouse cursor is. That's a bit annoying. Is there anyway to make it work like Windows?

View 1 Replies View Related

OpenSUSE :: KDE 4: File Associations And Menu Itens Missing In Application Menu

Mar 1, 2010

Every applications of KDE 4 menu are missing.

[URL]

When I try to open some file, including directories, "Open with..." window appears.

View 3 Replies View Related

Ubuntu :: Edit Applications Menu To To Hide Games They Stay On The Menu?

Jul 8, 2010

When I edit my applications menu to to hide games they stay on the menu. Everything else hides when prompted.

View 6 Replies View Related

Ubuntu :: Installed Global Menu Bar Applet For Top Panel / Removed Menu Bar

Jul 12, 2010

I installed the Global Menu Bar applet for my top panel, thus removing the menu bar from most, if not, all of my apps on Ubuntu. I removed the applet, mainly because of how God-Awful and inconvenient it was. Now, I don't have any menu bars on my apps!

View 3 Replies View Related

Ubuntu :: Can't Find The K Menu > System Settings > Advanced Tab > Disk And File Systems Menu

Mar 16, 2010

i found a tutorial to auto-mount ntfs drivers at kubuntu start

[URL]

but i can't find the K menu > System Settings > Advanced Tab > Disk & File Systems menu.it disappeared in kubuntu 9.10?

View 2 Replies View Related

Ubuntu :: Not Possible To Right-click On Another Part Of Menu Bar To Change Menu Properties

Jul 2, 2010

I'm brand new to Linux and Ubunto 10.04.On the menu bar at the top of my desktop I seem to have attracted some kind of bug!The Log Out Symbol repeats itself across almost the entire menu bar and I cannot remove it. If I remove other buttons from the menu the space is immediately replaced by more Log Out Buttons.When I hover on the icon I get the message 'Log out of this session to log in as a different user' and when I right-cllick to click on 'Remove from Panel' or 'Move' nothing happens.It is not possible to right-click on another part of the menu bar to change the Menu Properties.

View 1 Replies View Related

Ubuntu :: Hide - Remove Menu Icons In The Gnome Menu Bar

Jul 8, 2010

I'm looking for a way to hide the icons in the Gnome menu bar.

The only thing i've found is the gconf-editor and unchecking /desktop/gnome/interface/menus_have_icons, but that only affects the System menu and not Applications and Places...

Example:

Must be like:

How to disable them ?

I'm running Ubuntu 10.04LTS with Gnome 2.30

View 5 Replies View Related

Ubuntu :: Deleting An Applet From The Top Menu Bar And The Entire Menu Bar Disappeared?

Aug 5, 2010

I've been using Ubuntu for about 5 years now. I just installed it on one of my neighbors computers.I tried deleting an applet from the top menu bar and the entire menu bar disappeared. I click on the add new menu bar and it just throws something up on the side. I'm using 10.04. I never had this problem before.

View 8 Replies View Related

Ubuntu :: Main Menu Doesn't Show In Global Menu?

Oct 14, 2010

i am using the global menu applet on ubuntu desktop edition. almost all of the apps shows its main menu on the global menu applet, but lyx doesn't. am i the only one experiencing this problem? i am using updated maverick.

View 2 Replies View Related

General :: Application Menu / Administration And Preferences Menu Not Visible

Oct 27, 2010

i am having a problem on Ubuntu 10.10. In system menu, there is no Administration or Preferences menu.Also, application menu does not show anything. I am using Ubuntu since 2 weeks and still not used to to the terminal commands for running applications and admin tools.

one more thing.When i booted my PC today it reported an error and process terminated before reaching the login window. So i restarted and chose recovery mode. it also reported some errors and tried to fix the problem. it deleted some files i think. and my system is working again but with above mentioned problem.

View 8 Replies View Related







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