Software :: Make An Extremely Simple Script Named 'findm'?

Feb 24, 2011

I'm trying to make an extremely simple script named 'findm' in my /usr/local/bin that looks like this:

Code:
#!/bin/bash
find -mindepth 1 -iname '*$1*'

As you can see, I want to be able to run 'findm some_argument' while in a shell in any directory. The problem I'm having is that this script only works when I'm in my top most home directory. Any directory lower than that and the script returns no results.

View 2 Replies


ADVERTISEMENT

Software :: Create Launcher In Fedora 13 Which Will Run Simple Script Named Proj4a?

May 8, 2011

I am trying to create a launcher in Fedora 13 which will run a simple script named proj4a. I run this script from the command line as follows:

$ $HOME/proj4a >$HOME/proj4a_out

where proj4a is an executable file in my home directory and the output goes into a file, proj4a_out, in my home directory. Everything works fine. I created a launcher called Proj4a and in the command field I entered the following:

' $HOME/proj4a >$HOME/proj4a_out'

When I click on the launcher it comes back with the following: There was an error launching the application.

View 5 Replies View Related

Software :: File /var/lib/named/var/named/reverse/named.zero Failed: File Not Found

Mar 14, 2009

Mandriva 2009, BIND 9.5.0-P2. Named will start however I'm getting the above error as well as these:

14-Mar-2009 15:45:37.084 general: error: zone 0.in-addr.arpa/IN: loading from master file /var/lib/named/var/named/reverse/named.zero failed: file not found
14-Mar-2009 15:45:37.084 general: error: zone 0.0.127.in-addr.arpa/IN: loading from master file /var/lib/named/var/named/reverse/named.local failed: file not found

[code].....

Named shows to be running but with the errors above I know it's not running correctly. I also copied the above dir's over to /var/lib/named/var/lib/named which is where I 'believe' it's chroot'd at, though I could be wrong since I'm unfamiliar with chroot.

View 14 Replies View Related

General :: Extremely Slow Write On Disk With High CPU Usage / Make It Up?

Sep 4, 2010

My problem is extremely slow write on hard disk and 100% cpu usage and it happens when I want to write something on the hard derive not any other external derive.

Tried a fresh ubuntu install. No change. I am not even sure if it is a software or hardware problem.

View 1 Replies View Related

Server :: /etc/named.conf:57: Open: /etc/named.root.hints: File Not Found

Apr 1, 2011

I am using Cent OS 5.5 and i want configure DNS, but while configuring bind i am getting below error.

#/etc/init.d/named restart Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.conf:57: open: /etc/named.root.hints: file not found[FAILED]

View 2 Replies View Related

Fedora :: Make A Simple Startup Script

Apr 27, 2010

make a start up script so that it executes this command: cat /proc/acpi/battery/BAT1/state I managed to execute it writing command to .bashrc, but every time I open terminal it starts like this:

[Code].....

I need this command on start up, so that my battery meter starts working properly. For some reason, if the command is not activated, gnome battery meter is showing that battery is charging even if I am not on AC power. If there is any other way to fix this without making script I would be glad to hear.

View 4 Replies View Related

Networking :: Using Netcat To Make A Simple Proxy?

Nov 21, 2010

I made a simple proxy using netcat and it works great, the idea is to make the server and client communicate through two named pipes, file1, file2.

$ mknod file1 p
$ mknod file2 p
$ nc -l -p 12345 0<file1 1>file2 &
$ nc 192.168.2.118 80 1>file1 0<file2 &

The problem Im facing is that I cant seem to intercept the data going between the client and the server. I want to be able to have the data coming to the server in a variable, manipulate it and send it to the client, and the other way, have the data coming to the client in a variable, manipulate it and send it to the server.

Im running on an embedded device where tee, awk and many other commands are absent. how can I redirect the data to a variable, manipulate it and pass it to the other side, that is the question.

View 6 Replies View Related

Fedora Installation :: Make A Simple Avi File Play?

Sep 21, 2009

I try to play a simple movie in avi format. The codec is called AC-3. I tried several tutorials, now i stuck with a "local file conflict between packages" when i run the auto install with movie player. I try now VLC Player ... With VLC it works! Open from the Administrator panel - Add or Remove Software than search for VLC and tick the main stuff and install.

View 14 Replies View Related

Programming :: Make A Simple Vector Test But Can't Compile It?

Jun 6, 2010

I am trying to make a simple vector test program, but i can't compile it. Here is the code:

Code:
import java.util.*;
class Vec {
public static void main(String args [ ]) {

[Code]....

View 2 Replies View Related

General :: Make Simple Website In System Using Bash Scripting?

Apr 3, 2011

How to made a simple website in linux using bash scripting.

View 3 Replies View Related

Programming :: Errors - Make Pop-up Reminders For The Simple Calendar Program?

Feb 21, 2010

First off, I'm completely new to bash scripting so forgive me if I make any egregious errors. I'm trying to make pop-up reminders for the simple calendar program when. This is what I have so far:

Code:
#!/bin/bash
# set the time format for when
#current="$(date +%I:%M %p)"
current="$(date +%-l%p)"
today=~/.when/today

[Code]....

When I run the script, gxmessage pops up and displays the correct information, but it does so for each line in "~/.when/today" that contains a time that matches the current system time (which would be three pop-ups at 10PM, according to the example). I want it to display the information only once. How can this be accomplished? Is a while loop even the right job for this?

View 8 Replies View Related

Programming :: Make An Online PHP Contact / Phone Book With Simple PHP (no Database)?

Jul 5, 2011

I would like to unzip a simple PHP code files, to have a online PHP contact / phone book. Simply, slow, and not database oriented over complicated setups into settings. I have a PHP / web provider (free), not apache. WITHOUT SQL (like before it may exists) something like this [URL]

View 14 Replies View Related

Programming :: How To Compile / Simple Tutorial For Making Simple Program

Oct 7, 2010

i'm a college student studying pc programing, and i was given today a special work and i have to program using miranda... which i've never used it >.< can anyone give me a hand to where to download, how to compile, and a simple tutorial for making a simple program or something?

View 3 Replies View Related

CentOS 5 Server :: Named Won't Start \ Named Stop But Does Not Start Again?

Oct 28, 2009

i've made a big update of almost 300Mb.I'had a working DNS server.Now, when i boot the box, named works and it resolves all the clients.If i make any change (enter a new client for example) and of course i restart named (service named restart), named stop but does not start again !!!In order to get a working named, i 'm obliged to reboot the box?

View 6 Replies View Related

Ubuntu :: Make A Startup Script That Executes A Simple Php Script At Boot?

Mar 24, 2011

trying to make a startup script that executes a simple php script at boot. The stipulation is that it must be run after fstab is processed because it requires access to a volume that fstab mounts. As it is, it doesn't seem to be running properly at startup, and I suspect that it is simply running before the volume is mounted. The script does not need root access. If I run it once I login, it works fine.

Also, is there a way to determine the output of a startup script?I am have configured a bash script called module.sh that cd's to the scripts directory (in the external volume) and then executes the script. I didn't forget the ampersand after the php invocation. I used update-rc.d module.sh defaults to configure it.

View 1 Replies View Related

Server :: Make Application Server That Would Contain Simple Ones Like Edit / Openoffice / Gim

Mar 16, 2011

I am trying to make an application server that would contain simple ones like edit, openoffice, gimp, so on and so forth. I know how to access these using ssh but what I want is that the application runs on that server as it already does, but to open local files and save them locally.

View 7 Replies View Related

Fedora :: Extremely Slow Machine

Jan 27, 2010

I run F12. Since some days my laptop has become very sluggish. In Mozilla, switching between the tabs takes like seconds instead of fraction of a second. Also minimizing and mximizing windows takes long. Switching between the windows too takes long. Now I can't see the cursor while typing this post. I disabled some services that start at the boot time. I'm posting a list of services that are on in the runlevel 5 as that's the one I use.

View 5 Replies View Related

Ubuntu :: 10.04 Extremely Slow While Booting Up?

May 1, 2010

Not much else to say. I'd say it takes at least a minute before I get to the login screen. After that it runs fine and most of the previous problems I've had since upgrading have resolved themselves. why it's taking so long to boot up?

View 1 Replies View Related

Ubuntu :: 10.04 - Live CD Extremely Slow?

Jun 12, 2010

Have a little problem/annoyance. I was trying to use a Live CD with Lucid Lynx 10.04 x86 edition and the speed was incredibly slow. I took more than 10 minutes just to start. I noticed the CD drive stopped spinning (or spinning so slow I couldn't hear it) at times, then starting up again. I also noticed multiple i/o error in the logs after it finally booted up. The reason why I think this is a bug and not my drive/cd is simple:

a) The MD5ed the iso and even made two CDs with different burners. I tried older Ubuntu as well as several other Linux distros and the Live CD boot time is much faster (1-2 min). Tried the CD on a way, way older ancient laptop and i booted just fine and much faster.(I will provide any other info if needed).

View 9 Replies View Related

Ubuntu :: Compiles Are Extremely Slow

Aug 12, 2010

At work, we use Ubuntu to compile large numbers of C, C++, Java, and AIDL files.My system is a Core i7 Quad-Core with 8GiB of RAM. Prior to this install, it ran Ubuntu 9.10, 32-bit. A basic compile took roughly 45 minutes.I just did a clean install with (x)Ubuntu 10.04 64-bit. After setting up the build environment to allow 32-bit libraries (mobile development), a compile took roughly an hour:15.

View 2 Replies View Related

Ubuntu :: Extremely Slow Start Up?

Oct 10, 2010

I have had an extremely slow startup (upwards of a few minutes) for awhile now, and nothing seems to work to fix it. Regular boot time is far slower than it should be, and the time of logging in to a workable desktop is just really bad. I will log in, and then I will either get a blank desktop screen for awhile or an all black screen until the desktop will fully load with errors from gnome-panel and AWN not starting up automatically.Some of the fixes I have tried:

Disabling floppy from bios

Downgrading gnome keyring

Removing gnome* and gconf* from the home directory

Putting this script in /etc/init.d
#!/bin/sh
echo "nameserver 0.0.0.0" > /etc/resolv.conf

Here's my bootchart and a link in case the upload has problems http:[url].....

View 5 Replies View Related

Ubuntu :: Extremely Slow Printing

May 17, 2011

I have an HP LaserJet 2100M.Printing OpenOffice documents is o.k. no great delay but when I print out from browser pages (html) each page can take up to 10 minutes to print.I don't know how to troubleshoot this.

View 3 Replies View Related

Networking :: DNS Acting Extremely Weird

Mar 10, 2009

We have a nameserver which we moved over from an old server & ip a couple of weeks ago and updated all our dns records.Currently, our dns provider shows the proper records for our server, and if we dig the server at our dns provider we get the results. However, if we ping the server, or dig it and don't specify our server we get the old ip address.An opendns cache check also sporadically returns the proper results from some of its locations but generally returns the old ip address. Does anyone have any suggestions because this bewildering me.

View 1 Replies View Related

Slackware :: PSX Emulator Extremely Slow On 12.2

Aug 3, 2010

I downloaded the emulator called pSX so i can play my playstation cds in my computer. on my laptop i have slackware 12.2 installed.

The dependencies for the emulator are:
opengl
gtk
alsa
gtkglext
libxml

I found the appropriate packages for all of these (with the exception of opengl, I assume that means it's preinstalled, correct me if I'm wrong) and installed them. the emulator runs, at about a quarter the speed it's supposed to. I get no error messages in the terminal, just the huge speed drop. has anybody else gotten this emulator to work fine in slackware?

View 2 Replies View Related

Debian Configuration :: OpenSSH Is Extremely Laggy?

Aug 27, 2010

I have an old computer a friend of mine found in a dumpster, and I've decided to use it as a file server. After finally getting it to connect to my wifi network, I tried connecting to it via OpenSSH on my main desktop. After I connected, I noticed OpenSSH was being very laggy. Whenever I type anything in there's a very noticable and annoying delay from when I type it to when it appears on screen. Now, a while ago a friend of mine was helping me fix my laptop when fglrx drivers broke x, and I set up openssh on there so he could access it. According to him, there was no lag (and he's half-way across the globe, whereas my file server is in the other room). The computer is an old Pentium 4 with one and a half gigs of RAM, two hard drives (one I use for the os/swapping and the other I use for /home). It's connected to wifi via a spare USB Linksys 802.11 bg adaptor I found lying around, and it's using the default drivers that come with Debian to connect.

View 3 Replies View Related

Fedora :: Extremely Vague Bugs: Where To Report

Jun 30, 2010

I've been running Fedora since core 6, am on 13 now, always with KDE. I upgraded but also did fresh installs.I'm typing, in oo.org, Kile or Kate. Suddenly, without warning, the File menu is selected - mind you, without me clicking the mouse or pressing alt-F or anything. Just typing text.

Or how about this: I'm typing again. All of a sudden the direction changes from the normal left to right to the Hebrew right to left. I think I only pressed ctrl-s to save... Did I?

I can't reproduce any of it, although it seems to be related to Kate based editors and using alt-tab to switch windows. Like the alt key hangs digitally. Is it Linux, Fedora, KDE or Kate? (it can't be the computer, this has happened to me on several distinct machines) Where do I report this, to get a fix?

View 3 Replies View Related

Fedora :: Scrolling In Abiword Is Extremely Sluggish?

Sep 26, 2010

Click on scrollbar. Drag down. Watch text crawl by in fits and starts. Don't even think about using the scroll wheel. And this, on a one page RTF document. With no special characters or images or anything.

I tried the instruction here: [URL] It did nothing. How can I make Abiword usable? It doesn't have to be lightning fast, all I want is for it to scroll at the same speed and with the same responsiveness as all my other applications.

View 1 Replies View Related

Fedora :: Internet Connection Extremely Slow?

May 28, 2011

my installed windows makes full use of the 32mbit connection. in fedora i get between 10kbit and 100kbit.this is very annoying especially while browsing the net or using the package manager to do updates or download new software. what could be the problem and how could i solve it?

i very much like the look and feel of fedora 15, but this just makes it unusable on a daily basis.

View 5 Replies View Related

Fedora :: F15 Taking Extremely Long To Boot?

Aug 21, 2011

I just want to find out if anybody else is having a similar issue before I start trying to disable services one by one. When I boot in to F15, everything runs fine up to were it starts loading the CUPS module then it hangs for about 2 to 3 minutes, the next thing to load is Samba shares. So it could be either of these or it could have nothing to do with them. Just to add that I made 100% sure that all my samba shares mount fine and are online and have no shares mounting in my fstab file.

View 2 Replies View Related

OpenSUSE Install :: Extremely High CPU Usage?

Mar 18, 2011

However, I would like to ask if anyone else is experiencing Higher than normal CPU usage with openSuSE 11.4 PR?? My system, which is probably similar to others, increases the air flow with the fan on the CPU when it is working hard. Mine gets rather noisy. (don't have it on the floor, but right next to me) This fan speed increase has been lots more prevalent in the newest version of openSuSE.

Have also used 'top' and it looks like xorg is one of the biggest hogs. However, when I use VMware it goes into hyper drive a lot.

View 9 Replies View Related







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