Programming :: Create A Link List Is Giving An Error

Sep 23, 2010

I wrote a program to create a link list

Code:
#include <stdio.h>
#include <stdlib.h>
struct node {

[Code].....

View 4 Replies


ADVERTISEMENT

General :: View CD Shortcut Link / List Link Name By Using Any Command?

Jun 8, 2010

Whenever we insert CD,it creates a shortcut link in desktop.Can we list this link name by using any command? I am using Oracle Enterprise Linux 5.0.

View 10 Replies View Related

Programming :: Link The MySQL Libraries To Some C Code - /home/zgp/gammasqla/list.c:1883: Undefined Reference To `db_do_query'

Sep 6, 2010

I'm trying to link the MySQL libraries to some C code, the LambdaMOO server to be exact. I'm getting the following error:

gcc -g -O -L/usr/lib/mysql -lmysqld -I/usr/include/mysql ast.o code_gen.o db_lo
ad.o db_flush.o db_objects.o db_properties.o db_verbs.o decompile.o disassemble.
o eval_env.o eval_vm.o exceptions.o execute.o extensions.o functions.o keywords.

[code].....

You can see the link commands I'm using, and the lib and include path are both valid. I tried replacing -lmysqld with -lmysqlclient but this did not help. I'm using Debian and MySQL, libmysqld-dev and libmysqlclient-dev are all installed.

View 1 Replies View Related

Programming :: Bash Script Giving Unexpected End Of File - Syntax Error

Apr 12, 2010

I have a bash script giving me the following error:

[Code]...

When I run it I am getting: ./svnup: line 61: syntax error: unexpected end of file Can't for the life of me figure out what is wrong. It's a script to export the latest revision from SVN to the web root folder and archive the previous version, basically.

View 4 Replies View Related

Fedora :: Changing Run Levels - Error - Failed To Create Symbolic Link

Jun 27, 2011

Ok now since f15 does not use inittab file for default runlevel anymore how do you change it.

I have tried ln -s /lib/systemd/system/multi user.target /etc/systemd/system/default.target

And get the following error ln: failed to create symbolic link `/etc/systemd/system/default.target': File exists

I have even tried changing the /etc/systemd/system/default.target to my multi-user.target file to no aval.

View 4 Replies View Related

Programming :: Create Cvs From List Text File

Dec 21, 2010

I have a file with 5000 lines. it is a list of books authors, series and titles. all lines start with the author names, than there is a dash (-) than the series name, a dash again and the title of the book.

The problem I encounter is that sometime there is a series, sometime not, and as I try to enter this list in a database, I wanted to create a cvs file to import into mysql.

ex:

The best would be to be able to add in the second line, a "space dash space" just after the author name, but how to make sure it does not do it to the first line as well.

If I could separate all line with 2 dash, (grep ?) then I would be able to do a simple replace, and change the single dash into two.

View 2 Replies View Related

Programming :: Create An Array That Will Allow To Print A List After Selection?

Oct 18, 2010

I am trying to create an array that will allow me to print a list after selection such as:

1) Location A
2) Location B
3) Location C

Would you like to print selected locations? Print I have no idea how to approach this problem and don't know whether Perl, Bash or shell script would be the most useful in this particular situation.

View 5 Replies View Related

Programming :: Python: Dynamically Create A List Within A Dictionary?

Jul 9, 2011

how to dynamically create a list within a dictionary using Python.

Code:
dates = defaultdict(int)
array = []
...
dates[m.group(3)] = array.append(date)
dates[m.group(3)] = [array.append(date)]
dates[m.group(3)].append(date)

None of the above works and I've tried everything I can think of.

View 3 Replies View Related

Server :: Create Soft Link And Hard Link In RHEL5?

Sep 8, 2010

how can we create soft link and hard link in RHEL5 when am using in command it is giving format error

View 6 Replies View Related

Ubuntu Networking :: TP-Link Router Not Giving 150 Mbps?

Mar 31, 2010

Details:

1. Using XP Pro SP3 (32-bit)
2. Laptop = Sony VAIO VGN-FZ140E
3. Recently purchased a TP-Link Router (TL-WR740N) which claims to give 150 Mbps speed

When connected, my Intel Wireless WiFi Link 4965AGN shows a speed of only 65 Mbps . A friend came over with his laptop (having Windows 7) and was able to get 150 Mbps speed. I even compared and the same web sites were opening with considerable difference on our laptops. Do I need to upgrade the driver?

View 2 Replies View Related

Programming :: Create A Script That Returns A List Of The Users Who Have Never Changed Their Password From /etc/shadow

May 17, 2011

I need to create a script that returns a list of the users who have never changed their password from /etc/shadow. As I know on linux there is a command "chage" used for find last password change.

View 2 Replies View Related

Programming :: Linker Error - Couldn't Get The Program To Link

Jul 9, 2010

I have a simple C program which uses ncurses library and I am having linker issues and couldn't get the program to link.

[Code]...

So I think the ncurses libraries are in place but gcc still couldn't link. I am totally stumped.

View 3 Replies View Related

Ubuntu :: Copying Gives Error "cp: Cannot Create Symbolic Link"

Jul 10, 2011

i am root i have an ext4 partition of a usb drive mounted at /mnt/sdc1 i have fat32 partition of the same drive mounted at /mnt/sdc3

i want to copy the folder /mnt/sdc1/mnt/dir to /mnt/sdc3 i navigate to /mnt/sdc3

i type this in terminal cp -r /mnt/sdc1/mnt/dir .

I get a lot of this cp: cannot create symbolic link

How do i copy something from an ext4 partition to a fat32 partition?

View 3 Replies View Related

Programming :: C++ Link Error - File Format Not Recognized - Treating As Linker

Apr 22, 2010

I am trying to compile a software using a provided sdk. I suspect that the sdk has some mismatch of the platform library, but I am not sure.

The error I got is

Code:

The libidata.so.42 is there in that folder. I guess the file might be in a big endian. Is there a way to check if the libidata.so.42 i have might be a big endian format, rather than little endian?

If my guess is incorrect, This is a c++ code on fedora x86 machine.

View 4 Replies View Related

Programming :: Link Directories - Symlink Not Updated / Hard Link Not Supported?

Sep 6, 2010

In the ordering of files I keep I need links to directories. Sometimes I even need to move directories to new locations. I have tried using symlinks, but they become dead when I move the directory they point to. I have tried hard links, but I haven't found any Linux file system that would support hard linked directories. How can I achieve that a complex structure of directories (currently with symlinks for directories and hard links for files) keep symlinks live when directories are moved?

- is there any utility that updates symlinks when a directory is moved?

- is there any Linux filesystem that supports hard linked directories?

- is there any good Linux interface to the new NTFS (the only file system I know to support automatically updating directory links, called directory junctions)?

View 9 Replies View Related

Programming :: Python Error - List Index Out Of Range (Web Scrapper)

Feb 18, 2011

Having a bit of an issue with Python while trying to write a script to download every rar file on a webpage. The script successfully downloads any link that doesn't contain any spaces, etc. But when it hits a url like: [URL] (Classical Spelling).rar. It fails...I'm sure this is something simple, but I'm so new to python I'm not sure what to do!

Code:
import urllib2
import os
os.system("curl [URL] -i rar|cut -d '"' -f 2 > temp.out ")
infile =open('temp.out', 'r')
for url in infile:
print url
#url = "[URL]"

#url = target
file_name = url.split('/')[-1]
u = urllib2.urlopen(url)
f = open(file_name, 'w')
meta = u.info()
file_size = int(meta.getheaders("Content-Length")[0])
print "Downloading: %s Bytes: %s" % (file_name, file_size)
file_size_dl = 0
block_sz = 8192

while True:
buffer = u.read(block_sz)
if not buffer:
break
file_size_dl += block_sz
f.write(buffer)
status = r"%10d [%3.2f%%]" % (file_size_dl, file_size_dl * 100. / file_size)
status = status + chr(8)*(len(status)+1)
print status,
f.close()

View 7 Replies View Related

Ubuntu :: Lucid Apache2 Directory Symlink Error "Symbolic Link Not Allowed Or Link Target Not Accessible"

Jun 2, 2010

There is a symlink from /var/www to a personal directory. FollowSymlink and chmod 755 are all set. It works perfectly until each morning I will get a "Symbolic link not allowed or link target not accessible" error. When I do a "sudo service apache2 restart", the problem will go away.

View 1 Replies View Related

Ubuntu :: Link To File On The Host System - Error "Invalid Cross-device Link"

Oct 25, 2010

I installed 10.10 using wubi (Host system is Win XP). I want to create a symbolic link of a file on the host system (Windows c:abc.doc file) in my Ubuntu home ~/ directory.
When I type command ln /host/abc.doc abc.doc It gives me following error ln: creating hard link `abc.doc' => `/host/abc.doc': Invalid cross-device link

View 1 Replies View Related

Programming :: List 4 Names From Users List And Output Them To Fbusers In Numbered Ascending Order?

Feb 2, 2010

How would I list 4 users ID numbered 10, 11, 12 and 13 from my users list and output them to a file busers where their names are numbered by ascending order? How would I accomplish that on a one line command?

View 4 Replies View Related

Programming :: Downloading A List Of Files From A Remote Server Using A List?

Feb 10, 2009

I am trying to get this script to work. The purpose is to download a list of modules from the slax.org the list consist of a list of module numbers. What I am trying to do is Download the file or the file name corresponding to the number in the list.the list is comma delimited. this is what I have done so far and I am a stand still.

#!/bin/sh
# Wget script to retrieve modules from slax.org modules
#
# ----Begin of user defined values -----
# Path to wget

[code].....

View 7 Replies View Related

Ubuntu :: Error: E: Type 'sudo' Is Not Known On Line 52 In Source List /etc/apt/sources.list

May 4, 2011

don't know much, but when I tried to update I get this error:

E: Type 'sudo' is not known on line 52 in source list /etc/apt/sources.list E: The list of sources could not be read.

View 2 Replies View Related

Programming :: Atoi() Not Giving Correct Answer?

Jun 20, 2010

i m using atoi() to convert char value to int. and then passing that int as a swtich variable.switch goes in a case and exectuing that particualr function but returning 0 value....for example: i am finding no of process() and system up time().when switch program goes in system up time it gives right values means correct no of days, hrs , min and sec but when it goes in no of process() it gives 0 answer.

View 8 Replies View Related

Programming :: Avi On Website - Giving Black Screen

Mar 29, 2010

ok not done this b4, so i google away, and get this! [URL]... from here [URL]... all it seems to do is give me a black screen. i would like some simple code for now, just to play the video. I can make a still for the link. I do't care if it's js, html, anything that works.

View 9 Replies View Related

Programming :: Giving Output Of A Command As The Input To Another

Sep 7, 2010

While making a shell ,there is the following problem Im facing:

I am expecting the user to enter commands in the following format :

I am to separate these and the output of ls -l should be given as input to grep and the output of both to more.

But I am allowed (by our instructor) to use dup/dup2 or any other command(but not pipe or tees).

How to connect the file descriptors after successful execution of each command?

View 5 Replies View Related

Programming ::make AWK Do *something* Without Giving It Any Stdin Nor Inputfile?

Oct 10, 2010

[code]...

I've given the output from `df` on AWK's stdin. But what I wonder is if there's a way to get AWK to run `df` itself, produce the same output, and exit? Doesn't seem to be that simple. Here's some examples: Works for some reason, and I think only in Bash (nothing is required in the $()

[code]...

does AWK absolutely need *something* on stdin, before it begins to process the data? Can it be made to open a file or stream internally, act upon that as though it were the stdin, and exit?

View 14 Replies View Related

Programming :: Program Giving Segmentation Fault?

Dec 25, 2010

My program is to find the values of variables using matrices and in matrices using GAUSS ELIMINATION method. It gives segmentation fault then I input the values of coefficients of the variables.

#include<stdio.h>
void main()
{
int n;
int i,j,l;
float m;

[Code]...

View 5 Replies View Related

Debian Multimedia :: Create Link To Application In Kde

Jul 31, 2015

I installed debian 8.1, network install on a ThinkPad T60. When I right click the Desktop, I don't get "Create New -> link to application" and other links. In mint 17.1, I get a Menu with all links. I want to create a link to seamonkey with an icon on desktop.

View 3 Replies View Related

General :: Create A Symbolic Link In An Other Directory?

Sep 14, 2011

There are two directories A and B and a file F which is located in B. The working directory is B.How can you create a symbolic link in A pointing to F in B without changing the directory?

View 2 Replies View Related

Ubuntu :: Create A Link To A System Service?

Jan 20, 2011

I want to create a link to start apache2 service:

Code:
sudo /etc/init.d/apache2 start
I tried creating a launcher but it did not work at all

View 3 Replies View Related

Red Hat / Fedora :: Create This Link Between The Two Directories Shown Below?

Feb 7, 2011

I need to create this link between the two directories shown below.... So I assume everything that is put into the outgoing directory is copied to

# pwd
/home/e-smith/files/users/admin/home
ls -l
lrwxrwxrwx 1 root root 29 Jun 25 2008 outgoing -> /var/spool/asterisk/outgoing/

View 5 Replies View Related







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