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


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

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

Jun 9, 2011

search_proc () {
outputfile3=$3
clear

[code]....

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

Red Hat / Fedora :: Writing To Log File In C?

Apr 1, 2010

I am trying to write into a single log file from 3 different applications in C. In one of the applications I am forking out 5 instances. I would like to know what is the best way to open and close the log file in which i want to write from these applications. Should I open and close it at the start and end of each application or is it ok performance wise if i open and close it inside the log function which will be called for every write.

View 6 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 :: How To Check Who's Writing To The Disk

Mar 22, 2010

It frozen up occasionally, when that happens, usually the harddisk light lights up continuously. So I suspect some process is writing to the disk, which prevent other process to go on. how do I find out who's using a lot of IO?

View 3 Replies View Related

Red Hat / Fedora :: Winbind Keeps Writing Messages To Log?

Nov 17, 2010

I have a few Redhat 8 servers that I have shut the winbind service off, yet I see lots of message int he /var/log/messages log in regards to winbind. The message i am seeing are

pam_winbind[25640]: write to socket failed!
pam_winbind[25640]: internal module error (retval = 3, us
er = `root'

There is a lot of these messages in the log.

View 1 Replies View Related

Red Hat / Fedora :: Writing In Japanese - Use IBus ?

May 26, 2011

I need to write in Japanese, I know that I have to use iBus, but I don't know where to find it. I only know that it is installed, do you know where can I find it? I'm using Fedora 15

View 1 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 :: Writing GNOME Programs In LISP?

Nov 27, 2009

Are there frameworks/bindings for writing GNOME programs in LISP or java or one of the BASICs? Can I write a GNOME program in Objective C?

View 3 Replies View Related

Fedora :: Writing To NTFS Causes Fragmentation / Solve This?

Aug 26, 2010

For some reason when i write a file to my NTFS-partitioned external HDD the files seem to get severely partitioned. This only happens when writing to it from within Fedora.
Windows Vista doesn't seem to do this.

This image is a screenshot from MyDefrag.
On my other hard drive i have a 7GB file consisting of 1400 fragments.
i'm guessing this is too much fragmented, because it was a completely empty hard drive before it wrote the file.

What could have caused this please? and how can i solve this?

View 4 Replies View Related

Fedora :: Writing CD Image On VCD And Play In Sony Player

Apr 26, 2010

My friend give me some VCD and I see them in Sony VCD player and my friend need VCDs and I have to back VCDs. So I call him and want him please let me I copy VCD and I have for mine. So he let me. So I want make copy of VCD and write them on CD and use them in Sony VCD player. I do not want see them in Computer. I want see them in VCD player. I use Fedora 12 AMD64, which application can do this for me, make images from VCDs and write them on Disk and use them in VCD?

View 9 Replies View Related

Fedora Installation :: Will 13 Allow To Install Grub In Its Own Partition Without Writing Over The MBR

May 23, 2010

My laptop came with a hidden partition for restoring Vista instead of an install disk. I installed Ubuntu 9.04, which had an "Advanced" option that allowed me to install grub in the Ubuntu partition without writing over the MBR. Then I used EasyBCD to add Ubuntu to the Vista boot loader. I wanted to do this so that I can still restore the factory copy of Vista from the hidden partition if I need to. I upgraded the Ubuntu to 9.10, still using grub. When I did a fresh install of Ubuntu 10.04 it went to grub2, and I haven't figured out how to boot into it with EasyBCD yet.But I would like to try Fedora anyway. I will wait a couple of days and get 13.

1. Which grub does Fedora 13 use?

2. Will Fedora 13 allow me to install grub in its own partition without writing over the MBR?

View 6 Replies View Related

Fedora :: Tablet / Wacom Note Writing Program?

Jun 12, 2010

I'm looking for a decent program to take notes on my Lenovo tablet laptop. What's your favorite?

View 1 Replies View Related

Red Hat / Fedora :: Convert Slave To Master And Enable Writing To Db?

Jan 27, 2010

Is there any possible to convert slave to master, and enable writing to db?

View 4 Replies View Related

Red Hat / Fedora :: Pipe MySQL Dump To FTP Without Writing To Disk

Aug 8, 2010

I've got a Centos 5 machine running with a raid 1 SSD hard drive combo, as I don't know how or even if it's possible yet to wipe the free disk space clean I need to be careful to not fill all the free disk space. As I don't want to fill the free disk space too quickly and was wandering if it is possible to pipe the result of a mysqldump to a FTP client only writing it to the ram and not writing it to this disk.

I've done a bit of research on the subject and have found the two following commands:
Code: mysqldump < mysqldump options> | gzip > outputfile.sql.gz
Code: tar cf - / | ncftpput -c sonic.sega.co.jp /usr/local/backup.tar

I would like to combine the two to make something like this:
Code: mysqldump mysqldump_options > | ncftpput ncftpput_options -c SERVER_IP backup.sql

I haven't actually tried my code as it seems too easy and I'm sure I've got something wrong! If this command is even correct will it prevent the sql file from being written to the hard drive to my local machine?

View 4 Replies View Related

General :: Writing And Compiling Java Program In Fedora 12?

Mar 21, 2010

how we can we write java programs in java and how we execute it.. to produce output?

View 2 Replies View Related

Fedora :: CodeBlocks Writing To Vfat Partition Permission Error?

Dec 30, 2010

I partitioned my drive to dual boot with XP, and I also added in a fat32 partition so both Windows and Linux can read/write to there to share files. I now have a problem with permissions (I know that fat32/vfat does not support permissions.) I can as my normal user read/write to this partition, but I want to set-up a CodeBlocks project on there and this is where I run into my permissions error.I can create it and the .cbp file is there ect. but I can not save any work, it will complain ('could not write', or sometimes with 'maybe this drive is write protected'.) I have something like

UUID=1234-1A23 /repo vfat defaults,umask=000 0 0
in my /etc/fstab

View 5 Replies View Related

Fedora Installation :: F15 Installer Crashes While Writing Partition Layout

Jul 28, 2011

Trying into install fedora. I am setting up my system as a dual boot over two drives. I have set up a custom layout and whenever I get to the step to write changes to disc it crashes with an unhandled exception. I have tried multiple times now, it always crashes.

Here is the first line from the exception report:
anaconda 15:31 exception report
Traceback (most recent call first):
File "/usr/lib/python2.7/site-packagees/pyanaconda/storage/devicelibs/swap.py", raise SwapError("swapon failed for '%s'" % device)

View 10 Replies View Related

Fedora :: Writing Partition Image To Free Space At End Of Drive?

Aug 22, 2011

restore a partition images on another machine to the unused space on my laptop. I'm using netcat and dd to restore the partition.

On laptop:

nc -l 192.168.192.254 9000 | dd bs=1024 conv=notrunc,noerror seek=<some block pos> of=/dev/sda

On W/S:

dd if=part.img bs=1024 | nc 192.168.192.254 9000

The problem is that fdisk -l displays start & end sectors of the partitions and I need to know blocks. How do I determine the block number after the last partition to start writing this image?

Quote:

cat /proc/partitions

Displays blocks per partition. I could add those numbers up but is sure would be nice to have a utility that just give you what you need.

View 4 Replies View Related

Red Hat / Fedora :: Preparing A DVD+RW Disc For Writing - Mount: You Must Specify A Filesystem Type

Jun 15, 2011

I'm trying to mount an external DVD +RW Drive so I can burn a directory from my Linux Server to disk. I think I've figured out how to mount the drive, but it only works when there's a disk with data in the drive. When I enter mount /dev/scd1 /mnt I'm able to read from the drive, no problem. When I try to do the same thing, however, with a blank disk I get the following message: "mount: you must specify a filesystem type" So I'm assuming I need to prepare the disk somehow. I've verified that the dvd+rw-tools package is installed on the RH server but I'm not sure what the next step is.

View 4 Replies View Related

Fedora Servers :: File Change Notification When Writing To Network Drive

Sep 8, 2009

I have a relatively common problem, but I don't seem to identify it's source. I have a SAMBA server on my LAN to which there are mapped a few shares as network drives in windows xp (as Y: ) and mounted as CIFS in linux [as /y]. The problem is that every time I save a file [either windows xp or linux] on the mapped drive / mounted folder, our IDEs alert us that the file changes right after the save. I am running SAMBA 3.3.2.

View 1 Replies View Related

Fedora Servers :: Writing A Script To Search Through Specific Folders On A Based Server?

Feb 19, 2009

I am thinking about writing a script to search through specific folders on a Linux based server (Centos 5) and report any changes made to any file on that server.Like a detailed change log with the date it was changed and the difference in size. Dose anyone know if such a script exist?

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







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