Programming :: Proofread Prompt / Small Error Can't Find?

Jun 1, 2011

I've set the following as my prompt:... can't post the string due to the 15 post rule. how helpful....

Everything looks fine initially.
1- It sets the username and host in back on green text.
2- It then changes to an off-white an prints the command number for the terminal.
3- Next, it prints the working directory.
4- Finally is prints a ">" character and a space. it looks like this (hostname/un edited & image enlarged slightly to make it easier to read.)

The problem occurs when I try to "up arrow" to reuse and/or edit a prior command. It prints the prior command fine, but if I arrow over to edit the command sometimes the first character can not be deleted from displaying

I'd love to post 2 screen-shots I took to show the problem but.. 15 posts?

View 1 Replies


ADVERTISEMENT

Programming :: Run Small Shell Script - Bash - Syntax Error Near Unexpected Token `('

Jul 9, 2010

I was trying to run small shell script, but could not run. I got the error like in subject.

This is exact way i was trying to do.

View 6 Replies View Related

Programming :: Find Command With Standard Error Output And Mail Error File

Nov 11, 2010

We make everyday a DB Mysql backup on Linux redhat Enterprise. We are using a bash shell script (and putting it in the crontab) to execute it automatically everyday. We added a line to this script telling, once the backup has completed, to find old backup files (stored on hard disk after each backup) older than x days to remove them. We use the find command (search for file type) with the mtime option and in combination with rm command. Everything runs ok but we also want to add some new code to the same line: If find command cannot find anything or fails, for example if it cannot delete file or fails, send the error message (standard error output) to an error file (like error000001 and increasing) and mail the errorxxxx file to an email address for example to admin@companyname.com. What would be the code for this issue to add it to our find command in the same bash shell script??

View 2 Replies View Related

Programming :: Rectify This Error: RCC: Error In 'appchooser.qrc': Cannot Find File 'akregato?

Apr 12, 2011

how to rectify these errors..
RCC: Error in 'appchooser.qrc': Cannot find file 'accessories-dictionary.png'
RCC: Error in 'appchooser.qrc': Cannot find file 'akregator.png'
RCC: Error in 'appchooser.qrc': Cannot find file 'digikam.png'
RCC: Error in 'appchooser.qrc': Cannot find file 'k3b.png'
RCC: Warning: No resources in 'appchooser.qrc'.

and my .qrc file is like this

<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>accessories-dictionary.png</file>
<file>akregator.png</file>
<file>digikam.png</file>
code....

View 3 Replies View Related

Fedora Installation :: 11 Boot - Error "Could Not Find Kernel Image: Linux" And The Boot: Prompt After That"

Jul 23, 2009

I have downloaded the i386-DVD.iso image and have burned it on a DVD using Nero Express 6, when it boots from the DVD, it give me an error message "Could not find kernel image: Linux" and the boot: prompt after that. I have burned another DVD using Infra Recorder with minimum write speed but with the same problem. I have Ubuntu already installed on the computer.

View 8 Replies View Related

Ubuntu :: Find A Suitable Small Business Accounting Software?

Apr 7, 2010

I've been poking around for the last week trying to find a suitable small business accounting software that will work for us. To make a long story short I stumbled upon SQL-Ledger and it looks like a very good application just what we're looking for... and low and behold its in the repositories! Anyway I installed the SQL-Ledger package but unfortunately there's no way to load or open this app. Synaptic shows its installed but there's no gui or and reference in the menu. Searching using the filter in the menu results in nothing. So I'm assuming SGL-Ledger just needs a gui associated with it to open it right??

View 3 Replies View Related

Programming :: Is There Small IDE For Lconsole?

Oct 4, 2010

i'm learning C now, later C++. using DJGPP isn't so nice on MS-DOS yet, no LFNs etc. and other limitations that is only one terminal, no multitasking etc.is there a small IDE for linux console? (i'm using a celeron 333 atm). for C it would be sufficient i guess?what i would need is a wide documentation, help on .h files, includes etc.on MS-DOS i use RHIDE. later on i might use eclipse or code::blocks. read another thread about c/c++ IDE.

View 14 Replies View Related

Programming :: How To Write Small Project With C++

Dec 29, 2010

I am trying to write my first small project with C++ - implement stl list like collection class. This is what i have a the moment:

Code:

#ifndef GUARD_link_list_h
#define GUARD_link_list_h
template <class T>
struct Node {

[code]....

View 1 Replies View Related

Ubuntu :: Can't Find A Way To Get Back To Original Prompt?

Mar 15, 2010

I am using the latest UBUNTU 9.10. It was working great. I logged in as Tom, put in my password and could do what I needed to do. Now when I go to the CLI through the terminal I get "Tom@new-host-2:~$ " which has no privileges. I obviously messed up something. I can't find a way to get back to my original prompt when I access the terminal.

View 5 Replies View Related

Programming :: Create A Small Array Of 3x3 Arrays?

Jul 12, 2009

I'm trying to figure how to create an small array of 3x3 arrays such I can do

Code:

SUM1(i) = SUM1(i) + SUM2

where i goes from 1 to 8 and SUM2 is a 3x3 array.

View 2 Replies View Related

Programming :: Small Projects In C++ Using Advanced Features

Feb 4, 2010

Can any one point out links to some small projects w.r.t C++ ? Now when I say small projects. It doesn't mean building a calculator or matrix multiplication programs, nor does it mean building games, nor does it mean dealing with databases,

What I actually want is to use the advanced features of C++ like:
i.Templates
ii. Nested friends
iii.Virtual functions
iv. Operator overloading (not merely '+', '-') but '[', '<<' also

View 4 Replies View Related

Programming :: Send File With FTP From Small Version?

Feb 9, 2011

I have this problem.I need to do this:I got a small version of Linux installed in some small devices. These devices come from the provider with this small version of Linux installed.This devices should send data to some other machine in the internet. I have tested wput for this purpose with a PC which has an Ubuntu version 10 and it works fine. However, when I try wput in the small device, I get an error. It seems that the wput might need some libraries to work with the small version of Linux installed in the small device.The fact of using wput or not is optional. I just need being able to send files through ftp with this small version of Linux.The thing is that to be able to run wput in this small version of Linux, it seems that many of the needed libraries were missing. So what I did was just install all the needed libraries. But still the wput program fails in its first line.

View 14 Replies View Related

Programming :: Small Awk Script: Critiques Sought?

Mar 18, 2010

I'm not fluent in awk and would like to improve so seek critiques of this effort: stylistic, functional, whatever ...

Code:
#!/usr/bin/awk -f
BEGIN {
FS = "="
tab = " "

[Code]...

View 23 Replies View Related

Fedora X86/64bit :: Find A Prompt For The Same Passphrase For The IDE Drive?

Aug 12, 2011

I recently was given a system with an ASUS A8V motherboard, AMD Athlon 64 3000+ 1.8GHz CPU and one 60 GB SATA disk to which I added a 120GB IDE disk. As the disks are on different (built-in) controllers and are different speeds, I set up /boot, root and swap on the SATA disk, and then one big /home partition on the IDE drive, using the custom partitioning. If I install Fedora 15 32 bit (from DVD) with encryption enabled, I get prompted for the encryption passphrase during bootup as I would expect. If I install Fedora 15 64 bit (from DVD), I get that same prompt and the boot hangs. I can then bring up a serial console where I'll find a prompt for the same passphrase for the IDE drive. I can enter it and the boot will proceed.

I am now running F15 64 without encryption; I would like to get encryption working again but without having to enter the passphrase twice. Plus I figure that this *should* work the same under both the 64 and 32 bit versions. I have had to reinstall this system a few times, using both versions -- the behavior has been consistent.

View 1 Replies View Related

Ubuntu :: Find Drives To Mount From Command Prompt?

Mar 18, 2010

So, I plugged in two hard drives to my server. I started with two, an IDE and an SATA. Then I plugged in another SATA and an external SATA using a PCI controller card.

I currently only have command prompt (Putty) access. How can I set the drives up to be usable. They were on another server that died.

View 9 Replies View Related

General :: Set Up And Administer A Small Programming Desktop Environment?

Feb 23, 2011

I am would like to learn how to keep my system clean of unneeded and unwanted file clutter as I am trying to get the most out of my older home built pc. I am running fatdog64 puppy linux off of a usb stick right now, but I would like to have a small standards based setup on my hard drive to use as a base to build a custom kernel for my pc. I sure miss my old GEM desktop

View 1 Replies View Related

Programming :: Gimp Commands To Edit Small Image?

Jul 20, 2010

I have a few small still images of around 300 bytes each that I created under Windows many years ago, I'd like to:

1) change the colour of some pixels on each and
2) make them the exact same size but I do not want to learn Gimp to do this since I have no other use for it.

Could someone show me the sequences of commands in Gimp GUI that will do the job?

View 4 Replies View Related

Programming :: Small C++ Project - Disk Sector Viewer?

Jun 2, 2011

I have a small project that I am trying to do for my job to help us out. Basically, I need to make a tool that lets me view all the sectors of a hard drive in hexadecimal format to make sure they are all zero after a low-level format. I need it to be very minimal, and display the data in a way that I can scroll down and skim through the sectors. Doesn't have to be pretty, just functional.I need it to do more things down the road, but this is the first hurdle I need to overcome. I would like to create a GUI interface so it looks nice, but first I am only concerned with the sector viewing function. I am not entirely sure where I should start.

I see there is a tool called dd I could use to read the hard drive and I am wondering if I need to use that, or if I can just open /dev/hda as a file and be able to view all the sectors that way.Also, just to clarify, I am wanting to write this tool for linux,specifically DSL. I need it to be a very small distribution that can be loaded quickly from a usb drive, cd, or over the network with PXE.

View 15 Replies View Related

Programming :: Small Java Program To Manage 2 Apartments?

Feb 17, 2011

this is my first post and I would like to get some help from you , so what should be the answer for this question ?:::::::::::::the question::::::::::::::::THE UNIVERSITY APARTMENTSThe University Apartments provides apartment rental to university students at affordable rates, with optional facilities:Apartment Type A, 2 bedrooms and equiped with kitchen and laundry facilities. The monthly rental for the rooms in this apartment type is RM300.Apartment Type B, 3 bedrooms includes one master bedroom with attached bathroom but does not have kitchen and laundry facilities. The monthly rental for the rooms in this apartment type is RM200 and students staying in the master bedroom will be paying an additional 40%.

Each apartment may house a maximum of 3 students. Students are required to check out from the apartment unit when the current semester ends.Create an application to manage the university apartments rental:1. Register new student and assign apartment moduleRegister and assigns an apartment to the student for 140 days from the date of registration. The module should retrieve the date automatically from the system clock and calculates the expiry date for the apartment rental. Before an apartment is assigned, the system should allow the selection of the type of apartment (i.e. Type A or B), then check for the number of occupants in the apartment. If the apartment already housed 3 students, it should recommend another apartment unit that is still available. Upon registration, student should pay a RM100 for the utility charges, rental deposit for one month and the rental for the current month.

2. Update apartment status moduleWhen a student moves out from an apartment, the apartment status is updated.3. Reporting moduleGenerates a report of apartments with full occupancy and another report for apartments where rooms are still available. 4. Search module Enable the administrator to search for a student's apartment unit using the student id as the search key. The search result should produce the student�s information and the details of the apartment that the student is staying in.The application should be developed using object-oriented concepts using Student class and Apartment class, implementing the appropriate data fields and methods for the classes. Data may be stored in collections i.e

View 10 Replies View Related

Ubuntu :: RAID5 Error: /dev/sdc1 Is To Small: 0k?

Mar 25, 2011

i've just triede setting up my new raid with 4 discs however it wont let me create the raid?

Running my harddrives through a

Quote:

Promise SATA300 TX4 interface/controller

Thats my create command:

Code:
sudo mdadm --create --verbose /dev/md0 --level=5
raid-devices=4 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1
Error msg

Quote:

mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sdc1 is too small: 0K
mdadm: create aborted

if i try and do

Code:
sudo fdisk /dev/sdc
and tjek partitions with
code....

View 1 Replies View Related

Programming :: OpenGL And GLUT In Fedora 12: Windows Too Small And Don't Resize

Mar 15, 2010

I have verified using yum that I have the most uptodate glut, freeglut, freeglut-devel etc., yet when I compile Example 2-6 from the Red Book at http://www.glprogramming.com/red/chapter02.html#name16, I get a window that is too small for the program output, includes display from other windows, and will not redraw after being resized.

I get slightly better behavior with the SGI sample program mentioned in the same book, 'checkers.c'. Again, the initial size is too small, but at least it will resize and redraw the checkerboards entirely inside the resized window. What is going on here? Is this some bug in glut? I can't see anything obviously wrong in their glut initialization, which looks like:

int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize (350, 150);

[code]...

Then again, since I am such a newbie to glut, I am not sure I would recognize what, if anything, they did wrong. what ARE the valid and useful command line parameters I could have passed to the main() above?

View 12 Replies View Related

Ubuntu :: Error "Could Not Find A Compatible Opengl Display Resolution. Please Check Your Driver Configuration. (Error: Couldn't Find A Matching GLX Visual)"

Jul 22, 2011

I am having issues with 3d I am trying to start up a game called auteria but it displays this error "Could not find a compatible opengl display resolution. Please check your driver configuration. (Error: Couldn't find a matching GLX visual)" I am on ubuntu 10.10 could anybody give me a solution on how to fix this issue?

View 5 Replies View Related

General :: Damn Small Error: Mounting Cd-rom & Floppy (probably Also Usb)?

Jan 15, 2010

hi: I just installed damn small linux on a Dell 233 Pentium w/ Toshiba CD-ROM XM 6102B, it works fine except for mounting CD's & Floppies (and I assume, although I haven't tried USB-Drives)

when logged in as root, and typing in
mount dev/cdrom
w/ a cd in a the drive
the answer is
no medium found

when using X mount floppy command,
w/ a floppy in the drive, I get:
Error: mount: relocation error: mount: undefined symbol: blkid_known_fstype

also, my cd-rom drive won't stay closed, which is really annoying,

View 14 Replies View Related

Programming :: Write A Small Perl Script To Collect Some Info From Mysql?

Oct 10, 2010

am running Centos 5.4 and would like to write a small perl script to collect some info from mysql.

so I went
yum install perl-DBI
yum install perl-DBD-mysql

then

nano perl.pl
---
#!/bin/perl
use Mysql;

[Code].....

Why can't perl find Mysql.pm? I guess because it doesn't exist as I ran find / -name Mysql.pm, and also could not find it.

shouldn't that file have been created and thus exist after I install perl-DBD-mysql?

View 6 Replies View Related

Programming :: Script That Change The Names Of Files And Folders Into Small Letter?

Oct 2, 2009

i want to make a script that change the names of files and folders into small letter because they are all in capital and more than 1000 fileit is impossible to do that with my hand

View 14 Replies View Related

Programming :: Write A Small Program That Shows Some Stockquotes And Indexes Etc On The Desktop?

Aug 29, 2010

I want to write a small program that shows some stockquotes and indexes etc on the desktop. Does anyone know how to get the quotes from google, yahoo etc? Do I rip it from the webpages or is there some other way?

View 3 Replies View Related

Programming :: SSH With No Password Prompt?

Apr 19, 2010

I'm writing a script which will log into a list of servers if they have public/private keypairs set up. If a server doesn't, I want the script to move on to the next server rather than wait at a password prompt.I'm using OpenSSH version 5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007 on both client and server.I'm using this command: Code: ssh root "at" "IP" -o PasswordAuthentication=no KbdInteractiveAuthentication=no I had to write "at" instead of the symbol, as I'm not allowed to "post URLs to other sites after you have made 15 posts or more."This works for most servers, but not all (on some of them the script halts at a password prompt). I suspect those servers may run an older version of SSH which doesn't support the options I'm providing

View 3 Replies View Related

Programming :: Find Where Error - After "strcat", Data All Become 0x00

Oct 18, 2010

I create a http client to send data to server. The code :

int main(int argc, char *argv[])
{
int sockfd;
char buffer[1024];
struct sockaddr_in server_addr;
//struct hostent *host;
int portnumber,nbytes;

[Code]...

View 3 Replies View Related

Programming :: Cannot Prompt User In While-read

May 15, 2011

I'm facing a problem in a - at least I though it would be - simple BASH script. I use 'awk' to find matching lines in a file, and then use while-read to modify each line matching the expr casted in awk. It looks like this:

Code:

function foo() {
awk '$NF~/^./{print $NF}' FILE.TXT|while read line; do
bla bla bla ...

[code]....

However, each time the execution hits the 'read choice' line, it doesn't prompt - as well as pause the excution - the user for a choice: it just passes it. This problem just happens inside the while loop.

View 4 Replies View Related

Programming :: Change The Prompt Of Shell Through C?

Oct 30, 2010

I have an assignment that I have to change the prompt of shell through C.

View 11 Replies View Related







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