Red Hat / Fedora :: Add Files Dynamically To An Already Existing Rpm?
Jul 21, 2009
I am facing a problem. I want to know how to add files to an already existing rpm. Not at the creation time of rpm. Because we have to add some files to it dynamically if any user purchases it from our webserver. I have searched everywhere but havent find any. Is it possible to do so?
View 1 Replies
ADVERTISEMENT
Jun 7, 2010
I have an archive directory that needs to be cleaned up once per quarter. The top level (/data/archive/*) directory names change daily, as well as the subdirectories and the filenames (the application names everything according to date). Also, there are two top level directories, bin and incoming, that we can't touch. I want to write a shell script that loops through the 15 or 20 top level directories and deletes all files and subdirectories older than 3 days (skipping the bin and incoming folders). Can someone get me started on a script? I am kinda new to shell scripting.
View 2 Replies
View Related
Mar 13, 2009
Many people have multi-core cpus supporting frequency scaling now, if you want to see if the workload is being evenly distributed then add as many CPU Frequency Scaling Monitor applets to the Gnome panel as you have cores/cpus. Then right-click each one and select preferences and choose which cpu to monitor.
Now compile a large program or run a cpu intensive game and watch how the workload dances around between the two (hopefully)
Some clever apps like gnome chess will multi-thread and make max use of both cores, sadly many others won't.
View 9 Replies
View Related
Apr 15, 2011
I run a command in a Linux terminal, the result was written to the desied folder. After I modified the command and rerun it. The old files are still there and not overwritten at all. Only it is successfull after I deleted the old files and run the command.
View 3 Replies
View Related
Jun 17, 2011
If I'll install this will it effect my files?
View 2 Replies
View Related
Aug 26, 2010
I have a really nuisance problem. I have two NAS servers - different makes - both of which work perfectly under Windows XP. I can write new files, save existing files without error. Both servers have drives formatted to FAT32 - the only option - although the OS's are almost certainly an embedded Linux.Both units are recognized by Ubuntu 10.04 - and I can write new files to them both without problem (although the directory does not refresh - I have to reload it). I can also delete without problems. If I try and save over an existing file I get an error "Unexpected error: Invalid argument" - I presume the implied delete is failing but am not sure. New files also seem to be saved with the Read Only flag set.OK - I can work round the problem by deleting the files (that works OK) and saving them anew. Works fine - but a backup is impossible as any changed file will give rise to the error.I have tucked both drives into the hosts files in /etc - although I attach by IP address (which is fixed) anyway.
View 3 Replies
View Related
Oct 7, 2010
I'm trying to copy some files via terminal because i had some issues with nautilus crashing in the middle of the operation. So how can i copy files recursively while skipping existing ones?
View 7 Replies
View Related
Mar 4, 2011
Will unzipping always append files if the directories already exist? What about tar?
I unzipped an archive the archive had 3 folders and dozens of subfolders within those. app, skin, js
The folder I unzipped it to also already had those 3 folders as well as many child folders etc.
My website is still working so I'm just wondering. Is this safe or is there anything I should worry about. The other option was to manually upload each file manually that is in those 3 folders and the dozens of sub folders.
View 1 Replies
View Related
Jun 23, 2010
I have an existing unix user that some how didnt make it into the copy over to our LDAP server. How do I add an existing unix user to an existing LDAP directory? Will ldapadd work? I was under the impression ldapadd required an ldif file to work properly.
View 7 Replies
View Related
Apr 18, 2010
I am planning to install 10.4 when it arrives. And am not going to upgrade because i upgraded from 9.04 to 9.10 so now i need to refresh the system.But I have all my partitions except root using lvm2 logical volumes. My question is : What is the safest procedure to install 10.4 on an existing lvm2 without losing my files/partitions
View 2 Replies
View Related
Apr 5, 2010
My company's default OS is Windows 7. I convinced my manager so that I could use Fedora 12, since I am mostly familiar with development environment in Fedora. However there are a few things I need in Windows 7, and I want to stop going back and forth in two OS'es in dual boot-up setting.
I've searched online for easy way to use the existing Windows 7 as guest virtual machine. I first tried VMware's Vcenter Converter Standalone in Windows 7, but it failed with some error code, and searching the particular error code didn't turn up any solution. I also tried to use Sun's VirtualBox, but I get segmentation fault error in Fedora. I tried to see if VMware server has a tool, but installation exists with an error, and searching the web for the error code didn't turn up anything either.... I wonder if I am having this much difficulties because I am using x86_64 version of OS'es.
Anyhow, if anyone has done it successfully - using existing Windows 7 as guest virtual machine in x86_64 version of Fedora 12.
View 3 Replies
View Related
Apr 22, 2010
my problem:
- i log into many linux servers (redhat, debian, suse, ubuntu)
- i want to set the terminal window/tab title to something like: time|ip|fqdn|pwd
the partial solution i found:
- declaring a function _setTitle() in /etc/bashrc
- setting PROMPT_COMMAND at all servers in /etc/bashrc, calling _setTitle is /etc/bashrc the proper place?
but i am i need of a command to set the title of the windows/tabs
solution should
- work for tabs and windows
- should use only builtins and avoid nasty cpu-wasting external forks
- work with common clients (windows/putty, linxu/gnome-terminal, linux/konsole)
- solution should base on cli, not on some gui like sshmenu!!!
View 2 Replies
View Related
Oct 22, 2010
This post isn't really asking for a tutorial, but rather asking for some ideas. I've come up with a few ideas, but they seem cumbersome and unnecessary, so I was wondering if someone with more experience than me could out. Also, my explanations suck, but I'll try to do my best. So say I have an executable called X. At some point during its execution, X loads and uses (using dlopen and dlsym) a library called Y. In Y, there a bunch of functions that call the function called, for example, void *special_malloc (size_t). These functions come from another linked library (linked during compilation) called Z. Problem is, special_malloc contains some static variables within its scope, and when those variables are reset midway through a program, an invalid free occurs (special_malloc uses garbage collection). Now, what I want to happen is that whenever lib Z calls special_malloc, it instead calls the special_malloc defined in the executable X, so that these static variables are retained. Keep in mind that I have control of the Z library, meaning I can edit the source to fit my needs.
View 2 Replies
View Related
Mar 23, 2011
We are having perl version 5.8 and executing the perl scripts to maintain oracle database on Solaris10. Our existing perl version is 5.8.Now, we want to try the same existing perl scripts on Fedora14.Is it possible to run the existing perl scripts on Fedoara14?Do I have to seperately install the perl on Fedora14 ?
View 2 Replies
View Related
Apr 14, 2011
How can I add an existing certificate (pem format) as trusted in Fedora via the command line?Do I have to copy the files to a certain keystore? Where does Fedora store the trusted certificates
View 2 Replies
View Related
Jun 10, 2009
I have a doubt with how to add un-used space in my RHEL 4.0(linux) server to a existing partition. I will explain the scenario:-I have some 220 GB space on my linux server as shown by the command as below-
[root@JispNewDB ~]# fdisk -l
Disk /dev/cciss/c0d0: 733.9 GB, 733909245952 bytes
255 heads, 63 sectors/track, 89226 cylinders
[code]...
View 6 Replies
View Related
Apr 6, 2009
I want to find out how to create a Fedora installation CD from an existing Fedora System. I cant find my CDs and I want to set up another system. What commands do i use or how do I go about it.
View 1 Replies
View Related
May 5, 2011
I know this is somewhat lame, but I remember back in college the MOTD on some of the systems was a random quote. I always wanted to do that. It seemed really trivial, but still neat and clever.
I searched a bit and don't see anything built-in for CentOS, so I was considering writing a Perl script to parse the RSS feed from a quotes site, then update /etc/motd with a random quote from the feed. This would nearly guarantee I could have this on any distro with identical results. Does anyone know of anything that already exists? Is anyone interested in using a script that I write to have the MOTD updated with random quotes themselves, or am I the only one? I'm perfectly willing to share the result when I'm finished.
View 1 Replies
View Related
Feb 22, 2010
I'm looking for a way to dynamically modify a fied in the SQL file.
Example,
INSERT INTO `TABLE` VALUES(1AADFDF,DFF33D,10023,SOMEDATA, SOMEDATA);
INSERT INTO `TABLE` VALUES(1AADFDF,DFF33D,10098,SOMEDATA, SOMEDATA);
[code]....
The third field in this SQL file is what needs to change to n+1
"10023" needs to change to "1"
"10098" needs to change to "2"
"10123" needs to change to "3"
"10983" needs to change to "4"
etc...
I tried with awk and sed, but since both require the usage of ' (single quote), my variable fails to get updated. I know i can use cut and recreate the sql statememnt, but i believe there should be easier way using sed or awk. Would anyone know of any creative way to get this to work in one-liner? This needs to be a part of the script preferable without making call to external file.
View 1 Replies
View Related
Sep 24, 2010
Code:
test=(1 2 3 4 5)
for car in ${test[@]}
do
echo "Element : $car"
[code]....
if variable $car equals 1, new element is added "6" to an array. But i don't know why when i am printing all elements of this array (echo "Element : $car") this element ("6") is not mentioned, but if i make a command which check an amount of contained elements by array it will be 6 elements.
View 14 Replies
View Related
Jul 20, 2011
I have a script which takes an array as an input to the file.ex: test.ksh -l <array_value>
Every time I dont get the same array name.EX: test.ksh -l x ; where x="a b"test.ksh -l y ; where y="c d"
I store the value I get in l in varaible myLvalue.Now indise my Script I want to run a for loop for thevalue I get in -l.If I write the for loop as below. I'm getting value x.However I'm expecting the loop to run for a and b.
View 5 Replies
View Related
May 15, 2010
I'm new to Java.
I'm trying to use some dynamically loaded classes in my application.
The application doesn't know those classes , Just it try to load a class by name that its name came from input.
It doesn't know class (So I can't use casting) but just needs to call some methods of that class (every class should have that methods).
I thought about interfaces but I don't know how.
How can I call those methods?
View 1 Replies
View Related
Jul 6, 2011
I would like to make gcc to link one lib (pthread in the example) statically, and the rest dynamically.
(See the example .c file at the end of this post.)
compiles fine, but every lib is linked dynamically.
Now every lib is linked statically
Not a dynamic executable
I would like to link the libpthread statically and the rest dynamically. Is it possible?
[url]says if I give the full path to the .a lib then it will be linked statically:
So for me it does not work.
On other sites I found that I should use -Wl,-Bstatic -lpthread -Wl,-Bdynamic, but it also doesn't work:
So, how can I do that?
Machine: Linux 2.6.16.60-0.27-bigsmp #1 SMP Mon Jul 28 13:06:32 UTC 2008 i686 i686 i386 GNU/Linux SLED 10
As an example I used a little demo program from [url]
Here is the code:
View 4 Replies
View Related
Apr 13, 2010
We are running Oracle 10.2.04 RAC on Red Hat Linux 5 and when ever our SAN storage admin created new LUNS we have to reboot the servers so that server can see newly created LUNS. This causing downtime to our application. How we can add LUNS dynamically without rebooting servers. We are using device mapper mulitpath from red hat version 0.4.7-30.el5 and we have QLOGIC HBA's.
View 1 Replies
View Related
Feb 13, 2009
I installed Fedora and my existing boot up menu (Ubuntu & XP) disappeared leaving only Fedora. Using my Super Grub cd (boot trouble shooting cd) I recovered my previous boot system but it left me without the Fedora option. My question is, how can I integrate Fedora into my existing menu?
View 1 Replies
View Related
Nov 22, 2009
I have a dual-boot system with XP and Fedora. I had to reinstall XP a while ago. After XP reinstallation, to regain access to Fedora, I ran Fedora installation DVD. It told me that the hdd had a "loop file system" and that I had to reinitialize it. I chose "ignore", "upgrade" and then "Create new boot loader configuration". Everything works fine now, but when I tried to install F11 from a live cd I discovered that I couldn't. It can't edit the lvm part (nor delete it). The only things possible are to reintall F10 with the DVD that created the lvm in the first place or install F11 using preupgrade (the lvm remains ext3 so preupgrade can't edit it either).
My question is: how can I get rid of the lvm part without reinitializing the hdd (I don't want to lose the data on the other partitions). I want to reinstall Fedora but without lvm.I heard something about "fdisk" and "lvremove", but I have no idea how to use these, so I would like a detailed solution (something close to a tutorial).
View 14 Replies
View Related
Sep 23, 2010
Now that xorg.conf doesn't exist, how to get a working copy of the xorg.conf that would set it up as it is currently? I tried xorg -configure -retro but that just gives me a black screen.
View 13 Replies
View Related
Oct 25, 2010
Just wondering if this is possible and if so, how? I want to be able to apply the following patch: [URL]
It is apparently a test fix for the touchpad on the newer Dell laptops. I want to test drive it a bit. Otherwise, if someone could point me in the right direction as to custom compile a Fedora 13 x64 disc including this patch, that would be great.
View 1 Replies
View Related
Jul 1, 2010
We are using Real VNC enterprise server. User will connect to the vnc server and do their work. We are facing one issue since from last week. When user is working on session, some times the session will get hung.He can't do anything on that. If he close the connection and try to connect from vnc viewer to the same vnc session it is not connecting. even it is not asking for the password. I have checked in the server the Xvnc process for the session is still running. When I tried to check the session is alive or not from telnet it is not showing that RFB 004.001.
xhdvnc2 ~]# telnet localhost 5902
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
If users are running some important tasks on that session they are not able to access. We are using RHEL 4U7 .
View 1 Replies
View Related
Jan 26, 2011
I've got my laptop working with my UNI's rather complex wifi setup.
I need to get access to my wpa_supplicant file so i can use it with my nook and a few other devices that i need to get wifi access.
Network manager, i know, does all the wpa stuff dynamically and through scripts, so is there any way that i can get network manager to generate my wpa_supplicant config?
View 1 Replies
View Related