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?
I am running Valgrind on my program. It shows me two errors but mentions only addresses against them and not actual code even on a debug build.
The output is
==23002== Memcheck, a memory error detector. ==23002== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==23002== Using LibVEX rev 1575, a library for dynamic binary translation.
I'm building a file server, but before the admins move this to the networking forum' this IS about the kernel.
Anyway, I'm building a file server... a very basic thing. not much to it at all.. which is kinda the root of the problem... this is an old Dell (ugh! I know!) Dimension 8300. it's running a 2.6 GHz Celeron (Northwood die, so single-core), with (at the moment) a mere 256 MB of RAM... so I wanted to build a kernel that really minimizes its presence in my minuscule amount of RAM using this guide, I have gotten so far as the actual Kernel configuration. wherein it says to cd to your kernel's directory and use the 'make xconfig' command... but when I do this, it gives me the following error:
Code:
so I've never compiled my own kernel before, so I haven't a clue what's wrong, or what I need to do
I am trying to install gcc 3.2 on linux mint 10 julia . I have gcc 4.4.5 installed already. I am getting errors during the 'make 'stage. I did the following after downloading gcc-3.2.tar.gz
Code: tar xvf gcc-3.2.tar.gz mkdir build-gcc cd build-gcc
I've been trying to install Gimmie. So I've gone through a few tutorials and something always seems to go wrong. Right now I run the "make install" command it give me a bunch of error messages. If there is any other bits of information you need to know just ask.
I've been trying to follow this tutorial: [url] to get my Belkin F5D8053 Wireless Adapter working. I get so far as using the "make" command, but then encounter an error. This is the full terminal results:
The question I have is, can iTunes ever work in Linux? I've tried installing it using WINE but to no avail. Is there a way to make WINE shut up with the errors and let it install? I've tried using the terminal.
Google only gives me references to ubuntuforums for GNOME-shell issues. Basically, when trying to compile a program that requires GTK+ and GLib, I get an error equal to this:
Code:
/usr/local/lib/libgio-2.0.so.0: undefined reference to `g_source_get_time' /usr/local/lib/libgio-2.0.so.0: undefined reference to `g_source_set_dummy_callback' /usr/local/lib/libgio-2.0.so.0: undefined reference to `g_main_context_invoke'
When I compile evince from its source code, I am able to run ./configure properly, but when I run make the following output is displayed.
Code: make all-recursive make[1]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0' Making all in cut-n-paste make[2]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0/cut-n-paste' Making all in zoom-control make[3]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0/cut-n-paste/zoom-control' ..... make[3]: *** [libevview.la] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
I am not able to ascertain the source of this error, even though I seem to have the file in question-libevdocument.la. What do I do now to remove this error?
I want to gave much details as possible. working directory (~/a1/shell) in the shell directory i have Makefile. also in the shell directory i have subdirectory's (obj, src, include)
My current Makefile
Quote:
#What needs to be built to make all files and dependencies
clean:
# End of Makefile
I wanted it so: all .o files are created in the obj subdirectory, and my application, sshell, is created in the shell directory.
I am getting this error when i run the make run: No rule to make target 'shell.h', needed by 'shutil.o'. stop
I still try update my broadcom drivers, because when I try use airodump-ng i receive error.
This error:
Interface Chipset Driver
eth1 Unknown wl (monitor mode enabled)[code]....
I dont know why receive this error WARNING: modpost: missing MODULE_LICENSE() in /home/mobile/Desktop/wdriver/wl.o see include/linux/module.h for more information
I've getting strange build errors when using make-kpkg with the latest (2.6.39-rc5) vanilla kernel.I'm using the procedure outlined here: https:[url]....e.g.:
Code: Building modules, stage 2. MODPOST 3053 modules WARNING: modpost: Found 60 section mismatch(es).To see full details build your kernel with:'make CONFIG_DEBUG_SECTION_MISMATCH=y' CC arch/x86/crypto/aesni-intel.mod.o[code]....
There is even much more error output but it looks like it is basically the same issue.
I have a general question regarding memory errors. I frequently ran into memory errors such as seg fault, double free, etc. Sometimes I got the following traces for example.
I am trying to compile a program for my assignment at school that uses curses.I have installed libncurses5-dev, and curses.h is now in /usr/include, but I am getting all these errors(it compiles fine at school).
Code: grcunning@grcunning-desktop:~/school/cs474/assign7$ gcc -o proj7 proj7.c /tmp/cc2ZFXrs.o: In function `main':
I've generated some srt subtitle files using gocr from pgm files used in DVD's. The ocr program gets confused between lower case L and upper case i and sees them as the same thing. This results in words with capital i's in them instead of lower case L.
What is the best way to automate the correction without a spell checker? I tried sed, but it's difficult to tell between the i's that you want and those that need changing. I figured that any word that consists solely of capital i's is ok, e.g. Roman Numerals, but any capital i not at the beginning of a word needs changing.
I am running a java application on centos. For now I have a gsm modem connected via the the usb cable. Below is the message I get when I type the command dmesg | grep tty
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A usb 2-2: pl2303 converter now attached to ttyUSB0
Here is my program. It asks the user for input and then prints a shape of a certain length. The errors I get when I compile are:
shape.c: In function "main": shape.c:22: error: expected identifier or "(" before "int" shape.c:58: error: expected expression before "return" shape.c:59: error: expected expression before "}" token shape.c:59: error: expected expression before "}" token #include<stdio.h> .....
I am reading Sams Teach Yourself SQL in one hour a day. In this book they work with both Oracle and MySQL to teach you SQL. So I installed mysql on my box and I am creating the empty database they use in this book so I can follow along as I read. I have noticed a few typos in the book and now I have noticed some code errors too. I just don't know enough to fix em. I am working on creating the empty database and I am getting syntax errors when I create certain tables. I have checked both the printed version of the book and the electronic version (which differ slightly) and both give me the same synatax errors. First is Creating the first table of the database. Here is the code given to me to enter. The Electronic version
[code]...
how I can correct this error and create these tables?
In this case what is the return value of mount. I want to run e2fsck only when either mount fails or mount succeeded but with errors . Is there some way to detect this situatin "mounting fs with errors" in code/script .
I have this project which I've been working on essentially nonstop for the past three days and due to work I am running low on time. I'm new to Linux/Unix and my Teacher has assigned us a scripting project, due for Monday. I have All the functions for the project in a separate file which run as a daemon process when I log in. It has no syntax errors but my Script can not run the functions (I'm not sure where they go before or after the body) and I have one function I'd like you guys to take a look at. It has a Second menu leading to a case statement but it does not run after the Search. I'm Kinda tired of looking at the CLI but I have to finish this.
The 2010 CWE/SANS Top 25 Most Dangerous Programming Errors is a list of the most widespread and critical programming errors that can lead to serious software vulnerabilities. They are often easy to find, and easy to exploit. They are dangerous because they will frequently allow attackers to completely take over the software, steal data, or prevent the software from working at all.
The Top 25 list is a tool for education and awareness to help programmers to prevent the kinds of vulnerabilities that plague the software industry, by identifying and avoiding all-too-common mistakes that occur before software is even shipped. Software customers can use the same list to help them to ask for more secure software. Researchers in software security can use the Top 25 to focus on a narrow but important subset of all known security weaknesses. Finally, software managers and CIOs can use the Top 25 list as a measuring stick of progress in their efforts to secure their software.
I have a script that that is supposed to send me an e-mail when a host is not responding to ping:
The script works fine when I execute it directly but when cron executes it, the ping error is never picked up by the script so the if statement is ignored.