Programming :: Adding Job From Script (Custom Built RPM)

Mar 10, 2011

I'm building an RPM that requires adding a cron job into a user's(service account) crontab...from what I see in the manpages, this isn't possible, as the only viable option is to replace the crontab entries already there for previous scripts being run. Either way, as an example I've found I can make it work by directly modifying the crontab file using:

Code:
echo "* * * * * /bin/ls -la ~/ >> ~/ls.log" >> /var/spool/cron/userName

I'd just like to know, is there any MAJOR issues with modifying a the crontabs like this? This is running on a Redhat Enterprise Linux server by the way.

View 1 Replies


ADVERTISEMENT

Slackware :: Custom Built 2.6.37 Kernel And ACPI

Feb 12, 2011

I have a custom built 2.6.37 kernel where I have most of my devices compiled into the kernel. The only modules are related to nouveau (in case I want to go back to proprietary nvidia) and sound drivers. Everything seems to be running fine. However, in /proc/acpi, I'm missing a number of entries, such as thermal_zone/, dsdt, etc. I do have ac_adapter/, battery/, button/, event, processor/ and wakeup. I've gone through what I think is a very detailed review of my kernel config, and I can't find where I've missed something ACPI related. Here is my kernel config with the ACPI section.

Code:
# Power management and ACPI options
CONFIG_ARCH_HIBERNATION_HEADER=y
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_SLEEP=y
CONFIG_SUSPEND_NVS=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_HIBERNATION=y .....

View 12 Replies View Related

Software :: Custom Built GCC - Default Search Path For Stdlib

Jun 15, 2011

I've just built gcc 4.6.0 by myself since there is no update in Mandriva yet and I really needed the updated version, but I must be missing something in its configuration. I added ~/apps/gcc460/bin in front of my PATH, and the lib dir to my LD_LIBRARY_PATH in my .bash_profile, like so:

Code:
PATH=$HOME/apps/gcc460/bin:$PATH:$HOME/apps/bin
LD_LIBRARY_PATH=/home/duckz/apps/intel/composerxe-2011.4.191/lib/intel64/:/home/duckz/apps/gcc460/lib/
LD_RUN_PATH=/home/duckz/apps/intel/composerxe-2011.4.191/lib/intel64/:/home/duckz/apps/gcc460/lib/
export PATH
export LD_LIBRARY_PATH
export LD_RUN_PATH

I still have gcc 4.4.2 installed, but it's now hidden, so gcc --version correctly yields 4.6.0. I finally tried to build my project, all went fine, but at the moment of running it I get:
Code:
./EugGame.Release.Linux: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./EugGame.Release.Linux)

I assume the correct version is the one located in ~/apps/gcc460/lib, but how do I make my project load the correct lib? Is it possible at all to have two versions of gcc on the same machine? I just found that I should've added lib64 to my LD_LIBRARY_PATH instead of lib. Anyways, even if the problem is solved, I'd like to hear if my configuration is well made or if I should leave LD_LIBRARY_PATH unset and use some other way to override the default search path for stdlib.

View 1 Replies View Related

General :: Custom Built Live CD Using Gentoo Not Booting Properly On All Machines?

Dec 12, 2009

I've been working on creating a Live CD with the tools I want, just for my use with system recovery and repair. For the most part, things have gone very well. The Live CD actually works fine, somewhat. I have run in to a problem where it doesn't actually boot on a lot of hardware.

What happens is during boot, while the modules are loading, the boot process hangs and the disc drive spins down. While I thought it might be a kernel problem, I'm using the .config from the latest gentoo Live CD, which boots fine on the same hardware.

View 2 Replies View Related

Slackware :: Worth Changing Chost If System Built With Custom Prescott Cflags?

Oct 18, 2010

I built my slackware system from source code. Bootstrapped, toolchained etc.. The only thing I didn't change was the chost thinking that life would be easier if left alone @ i486. Would I have gained anything if I had used i786 or even pentium4 (pentium4-slackware-linux-gnu)?

I already got all the benefits of optimization when I used (still using) my own CFLAGS CXXFLAGS right? So changing the chost won't do anything speed wise will it? If I used march=prescott when compiling everything am I ok to just forget about the chost value? It's not gonna change anything will it?

View 7 Replies View Related

Ubuntu :: Adding A 576i Custom Resolution?

Dec 7, 2010

I am trying to add a custom resolution (576i) when connecting an ASROCK ION330HT to a panasonic SDTV CRT.

I have previously had success connecting a laptop to the SDTV using powerstrip (Vista). Now that I am using Ubuntu I dont have that option.

I have used xrandr to try and add a 576i resolution (using --newmode, --addmode, --output). When I view the available resolutions using "xrandr -q", for the new 576i resolution I see the following:

720x576_@25i (0x19f) 14.0MHz
h: width 720 start 728 end 792 total 864 skew 0 clock 16.2KHz
v: height 576 start 593 end 598 total 625 clock 25.9Hz

Can anyone explain (0x19f)? I am wondering if that is an error??

If it matters, I'm using 10.04.

View 1 Replies View Related

OpenSUSE Hardware :: Adding Custom PJL Instructions To Print Job

Sep 18, 2010

Getting sick of always having toner saver active when printing in Linux, I've used windows today to "print to file" and examine how the windows driver for my printer manages to override the toner saver settings.

It turns out that the windows driver prepends some PJL commands to the PostScript file that is sent to the printer. Nothing really fancy, so I would like to:Define two logical printers: one that uses the "toner save" feature and one that prints with the highes quality. For the "high quality" printer, prepend the same PJL commands that the windows driver adds.

Any hints on how I can do that (especially adding the PJL commands to the data that is sent to the printer)? My search skills seem to let me down on this one :-(

Hardware and software details:OpenSuse 11.2 HP LaserJet 6MP Printer networked through a D-Link one-port printer server (of the type you are supposed to plug into the printers parallel port)

View 1 Replies View Related

Ubuntu :: Adding Custom Icons To The Main Menu

Sep 29, 2010

i just added a wine program to the main menu as it didnt show on default and it has no icon, just a default one which isnt right, so just wanted to know if i can change this icon by inserting the correct image?

View 1 Replies View Related

General :: Adding A Custom Keyboard Layout In Kubuntu?

Feb 28, 2011

I have written a custom keyboard layout that I'm trying to install in Kubuntu 10.10. This is the layout: [URL]

I have added the layout as /usr/share/X11/xkb/symbols/dotan and made these changes:

In /usr/share/X11/xkb/rules/base.lst I added this:
! layout
dotan Dotan
Of course, the !layout line was already there, I did not touch it.
In /usr/share/X11/xkb/rules/base.xml I added this:
<layoutList>
<layout>

[Code]....

However, after a reboot I do not see the new layout in KDE's configuration for these things.

Note: this is a repost of a post on the geekhack forums. After posting I realised that LinuxQuestions is the better place to ask this. For reference, here is the original geekhack thread: [URL]

View 2 Replies View Related

General :: Adding Custom Files And Rebuilding Live CD

Jul 13, 2011

I have been able to successfully build a live Linux CD, the problem is during the course of setting up my new linux instance on my latop I had to install a few items (intel drivers). So got all the files and everything worked after manually installing, but wanted to try to rebuild the CD with all the files in the CD, rather than having to use a USB drive to put the file onto my laptop. When I made the changes to the configuration that I previously used(just edited the chroot file and did lh_build again) nothing happened the binary was no rebuilt. So some questions: If I am wanting to add files into a live CD build how do I do this? How do I rebuild a CD? or Is it possible? (i.e. I have to continually start from scratch each time).

View 2 Replies View Related

OpenSUSE :: CUPS: Adding Custom Page Size To Ppd File?

Mar 24, 2010

I have a Canon i560 printer, which is rather well supported by Gutenprint drivers. I have been using those for a while and they serve my regular printing needs. However, when I try to print a good quality photo on glossy photo paper, strange stuff happens.The colour doesn't come out nice, but somewhat faded. Worse, no matter how I specify that I want to make a print on 10x15 glossy paper, the actual print is always cut off, printed landscape when I specify portrait, etc. The printer is shared via CUPS and when my wife prints from her Windows XP machine, the printer works normally and the colours look brilliant so there's no problem with the machine itself, it has to be in the driver.

I googled this problem extensively and in my search, I found out that Canon does in fact have a Linux driver for this printer, though it can't be found through their website. It is on their ftp server, however: ftp://download.canon.jp/pub/driver/bj/linux/I installed the driver from there, following instructions that I found on the web and I have the printer working. But...the photo paper size that I want to print on (10x15 centimetres) isn't available in the ppd file. I can also not specify a custom paper size to print on in digikam or gwenview, since that option is greyed out...Since a ppd file is a text file, I decided to see if I could add a custom paper size. I googled some more and found this page: Adding Custom Paper Sizes to a Custom Printer File Using a Text EditorWith the help of that page, I thought I had it nailed. I added the following to my ppd file:

*PageSize photo/Photo 10x15: "<</CNPageSizeName(photo)/PageSize[283 424]ImagingBBox null>>setpagedevice"
*PageRegion photo/Photo 10x15: "<</CNPageSizeName(photo)/PageSize[283 424]ImagingBBox

[code]...

View 5 Replies View Related

OpenSUSE :: LibreOffice Impress - Adding Custom Effects In Text Transition

Jun 29, 2011

I have an extremely urgent support request! I need to create a presentation by Friday. I have selected the template, the elements etc. But, I have to add transition between each text Outlines and each page. It's very easy to add page transition effects. But, so far I have not managed to add automatic custom effect in text transitions (with click).

For example, let's say that I have in page the following format:
Text 1
Text 2
Text 3
I want to present the elements as Text 1, then I click the mouse, Text 2 click the mount Text 3 etc. In MS PowerPoint this is done via Master pages.

I tried the same on OO/LibreOffice 3.3: Edit the Slide Master, modified the fonts etc. Then, I tried to add a custom animation in each element. But with no success.
First of all, it seems that any effect is named: Outline Text 1: Click to...
Second: Even If I accept the fact than there seems to be no way to add an effect for Outline 2 etc, I save and show the presentation. But, instead of a page transition then a blank page that requires a click from me to present the 1st element, I see ALL elements. So, is it possible to do that in OO?

View 9 Replies View Related

Ubuntu :: XFCE - Configuring Startup Apps / Adding Custom Keyboard

Jun 20, 2011

I am new to XFCE and I'd like to ask few question about usage:
1. How can I disable dragging windows through workspaces? I like them to stay at one.
2. How do you configure startup applications?
3. Why XFCE menu doesn't show some of my custom icons? (png, tried more than one, for custom launcher - eclipse)
4. How do I add custom keyboard? (ALT+SHIFT switching)
5. I restarted laptop and all my applications re-opened after restart. I do not want that. How to disable this?

View 9 Replies View Related

Programming :: How Applications Are Built

Mar 28, 2010

I've heard a long time ago that linux applications are built by having a CLI first, and later writing a GUI above that. Does someone have any reference/links about that subject? I'm interested in the principles of this method.

View 7 Replies View Related

Programming :: Debug App Built By Libtool Using Eclipse?

Oct 17, 2010

I am trying to debug a src code that I download from the Internet.It is built with libtool. I am able to debug it with gdb, but i cannot debug it with eclipse.

View 3 Replies View Related

General :: Programming Languages Built Into Mainstream Distros With Interpreters

Jul 30, 2011

other than Python, which languages are built into most Linux distros, using a real-time interpreter, like the Python prompt, where you can just enter some commands and test out ideas before actually creating a file with your program?

View 4 Replies View Related

Programming :: Can Static-built C Program Run On System Without Libc Installed?

Sep 13, 2010

Okay, just wanted to be perfectly clear on this point... /static/ software builds don't link to /any/ shared libs, right? I.e., can a static-built C program run on a system without a libc installed?

View 1 Replies View Related

Programming :: Custom Gui For Micro Core ?

Jan 10, 2011

Making a custom gui for micro core linux. az i want to make a ditro based on it.

View 8 Replies View Related

Programming :: GUI - Custom Polygon Window ?

Jun 12, 2009

I would like to make a GUI that is not a standard rectangle, but instead is whatever polgon/shape I would like it to be.

A good example of an app that does this would be winamp.

It seems that all GUI programming is related to using tools similar to Visual C++, with buttoms and widgets.

How does one go about making a custom gui like this?

I am versed in C++ but I would not mind learning a new language.

View 2 Replies View Related

Programming :: Loading A Php Module Using Custom Ini?

Sep 9, 2010

I have a webhosting account, but the server admin did not include mysqli module. How can I use mysqli in this situation?

I am thinking,

put mysqli module in my web directory

load it using custom php ini

View 1 Replies View Related

Programming :: Calling Sizeof From Custom Function?

Oct 17, 2010

lets look at code in C

Code:
#include <stdio.h>
#include <stdlib.h>

[code]...

View 3 Replies View Related

Programming :: Custom Delimiter For Hash In Perl?

Jan 6, 2010

Can I have a custom delimiter for hash in perl?

View 4 Replies View Related

Programming :: How To Run Program Remotely Using Custom Environment?

Jun 11, 2011

I am trying to to execute multiple programs on multiple remote machines. Each program needs to be run in a custom Environment that is not known at login time. Currently I am using ssh to connect and run the program.
My issue is that I'm not sure how setup all the Environment Variables that I need on the remote machine. I was able to write all the environment variables/values (NAME=VALUE) that I needed to a file and place on a shared file server (prog.environment). I thought the best way to approach this would be to write my own utility (custom.shell) that would interpret the environment file and then execute the desired command.

View 5 Replies View Related

Programming :: Custom ZSH Error Prompts / Zsh: Command Not Found?

Mar 25, 2011

Using zstyle, I can create a custom warning for messages and such, but looking into the man pages and all, I do not see anything for customizing actual error messages in ZSH, as such:

Code:
casper@ltp01[/home/casper][19:14] - asdfsdafasdfjsdf
zsh: command not found: asdfsdafasdfjsdf

View 3 Replies View Related

Programming :: Adding Two Arrays?

Mar 1, 2010

I have a problem on a program,the problem take a very long time when i try to add two big arrays element by elementI know that matlab make adding vectors more faster than adding element by element but I don't know how!!!do any body knew how matlab make vectors operations more faster than element by element???I want to make my calculation more faster because the program is very big

View 8 Replies View Related

Programming :: BASH Scripting - Creating A Custom Service (CentOS)?

May 7, 2011

I am trying to create a custom service to manage a minecraft server what runs in a screen session (this is to allow easy console access as opposed to running it as a nohup background process). I am hitting two main issues with this script so far and wondering if anybody is able to shed some light on it, considering I am far from the greatest BASH scripter on Earth.

The issues are related to start and stop. the first issue with start is there is a command run "screen -dmS minecraft java -Xms1024M -Xmx1024M -jar /minecraft/minecraft.jar nogui" what doesn't appear to work, however when run from console (copy and pasted) this command seems to run perfectly. I am uncertain as to why this is not working within the script. Also if run from a script in /minecraft it also appears to work but in the minecraftd script I have created at /etc/init.d it does not work. I think the issue might be related to the location but am not certain on it, nor how to resolve it.

the second issue with stop is that it works sometimes but at other times it does not, overall it seems to work about 30~50% of the time. When it works it passes a couple of disconnection messages to the screen session and then gives the stop command (the command to gracefully terminate the minecraft server). It seems to work more often when using screen that I attach to the minecraft session while it is running but really not sure if this is an issue with my scripting or an issue with how I am passing things to screen.

The full code in /etc/init.d/minecraftd is below

Code:

#!/bin/bash
## Script Information
## Script Author: Berwick East

[code]....

View 9 Replies View Related

Programming :: Custom Progress Bar Of Video Conversion Script (FLV To XVID)

Aug 7, 2010

i have written a bash script to convert flv files (e.g. videos) to xvid to be played on my dvd player. the conversion is not really the issue, as it works. what i am dealing with now are 2 problems i have not found a good workarouond:
1. surpressing the shell output of mencoder completely ( i do not want to see all the mencoder messages). this i have only solved to a certain extend.
2. i want to create a progress bar. this one i have not yet cracked.

the script:
code:
#!/bin/bash
## settings
v_bitrate=768
video_opts="-ovc xvid -xvidencopts bitrate=$v_bitrate:autoaspect"
audio_opts="-oac mp3lame -lameopts fast:preset=standard"
store_dir=./converted_files .....

#start the script
main_menu
1. mencoder output: using /dev/null works more or less. for example: if mencoder detects a double frame while converting, a message is still printed on the bash screen
2. progressbar: i have no clue yet on how to do this. any link or tip is welcome.
my goal is something like this:
[56%] [time in progress] [timeleft]

View 7 Replies View Related

Programming :: Adding User Through The Script?

Jun 6, 2010

Im trying to create the following script...I want to create an interactive script that prompts the user for the following:

user name
user home directory
user login shell
user comment

the script then needs to read those variables that are entered by the user and actually create the user account. and of course, would like the script to display what user account was just created so that i know in fact the script worked successful.

View 2 Replies View Related

Programming :: Adding Different Data Types?

Jun 9, 2011

i am searching for a table that gives info about the result of operations (+ , - , * , /) on data types

i mean if we * int by another int, the result should be assign in long so no overflow happens.

something like that.

like what will be the result of mult unsigned int by signed it , is there tables for such operations.

View 6 Replies View Related

Programming :: Adding Directory To The Path?

Apr 2, 2009

I have made the installation of Qt4 in my Fedora/MacBookPro. It also got a first compiling and running a simple program. The point is that for the compiler to run I need to point out every time where the bin is located, as that:

$ /home/threader/kinetic/bin/qmake -project

I have tried the following, but it still doesn't work:

# script
#-----------------------------------------------------------#
# /etc/bashrc or /home/threader/.bash_profile
# config to Qt compiler

[code]....

View 5 Replies View Related







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