Programming :: Manipulate Application To Look In Different Location For File?

Aug 23, 2010

I have an application which looks in a particular directory for it's settings. For example varsetting.txt. These settings are stored in a text format and can be edited easily. I would prefer to keep this setting.txt file on a USB stick rather than the HDD for portability so that I can easily use the same settings on two linux PC's without having to redit them everytime. I have tried but cannot manipulate the application to look in a different location for this file, do you know if it is possible to "point" linux to another location when looking for the file?

View 2 Replies


ADVERTISEMENT

Programming :: How Some Websites Hide Exact Location Of File On Their File System

Mar 12, 2010

in case you have been wondering how some websites hide the exact location of a file on their filesystem, just thought i'd share it with the commnity at large in case someone else is looking for something like this.i take no responsibility for how it is used.

View 4 Replies View Related

Programming :: Manipulate A $_POST Via PHP?

Apr 7, 2011

I want to encrypt a password $_POST and save it to a file. Is there anyway I can make $_POST equivalent to a php array.

View 2 Replies View Related

General :: Using Sed To Manipulate CSV File

Feb 3, 2010

I have been using sed to manipulate a csv file but I have one problem that I can't solve. The csv file has many line and many columns. If in a particular line column 2 has a certain value I want to replace that value with the value in column 5 in the same line.

View 5 Replies View Related

Programming :: CreateProcess() In C \ Specify The Location Of The File As An Argument?

Aug 31, 2010

am coding a chat program in C (win32), where I need both the client and the server to communicate, without waiting for a reply from the other side, like the way we chat in any messenger. Is there any way of accomplishing it? I tried out CreateProcess() function, but am not clear how to specify the location of the file as an argument.If there are better techniques than CreateProcess(), then

View 13 Replies View Related

Fedora :: Using Sed To Manipulate A Line In A File?

Nov 16, 2009

My latest rpm package building project is a ham radio program called rmsgw. The source code tarball is a "make" and "make install" affair. It's Debian style Linux format fails badly on a Fedora install, so some tweaking of a configuration file is needed.I presume sed is the right tool for this job. I have no experience with sed and I don't want to spend a week or more in 'info sed' and doing endless trial and error if I can avoid it. I need to change one line in a text file named rmsgw.mk with a command(s) in the spec file.The original line:

Code:
PKG_LIBS := -lwl2k -lrms -lmysqlclient -lxml2
The line as it needs to be for 'make' to succeed to build the binaries:

[code]...

View 5 Replies View Related

Programming :: Implement Dhcpctl In A Program To Manipulate Dhcp Leases?

Aug 1, 2011

i would like to implement dhcpctl in a program to manipulate dhcp leases. It doesn't work and there are errors at compilation :

/tmp/ccYPRIt5.o: In function `LeaseCleaning(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
pxe.cpp.text+0x133a): undefined reference to `dhcpctl_initialize()'
pxe.cpp.text+0x1352): undefined reference to `dhcpctl_connect(__omapi_object**, char const*, int, __omapi_object*)'

[Code]...

View 7 Replies View Related

Software :: Manipulate Text File To Allow Import To Excel?

Jun 11, 2010

Have managed to create a simple script to poll the various printers we have at our company for a page count via SNMP. At the moment the script echos the printer name to a text file and then the snmp output is appended to the next line. In my rush I thought by using sed to add a comma to the end of each line would mean it would import in to excel nicely. So rather than having:

Printer 1,
45536,
Printer 2,

[code]...

View 3 Replies View Related

Programming :: Shell Script To Delete Files Which Location Should Be Read From Log File

Jun 26, 2010

I have 2 external hdd in wich I have all my files. yesterday, I have copied all the files from hdd2 to hdd1 and I want to eliminate duplicates so I used FSLint to find them,now I want to make a shell script to delete all the files/entries (read from the log file) that begin with.

View 14 Replies View Related

General :: Awk: Read Dan Manipulate Data In Multi Files From A File?

May 26, 2011

I wonder capability of awk to manipulate data in consecutive multi files by read one batch file.for example I have files: data1.dat, data2.dat,data3.dat and listfile.txt

cat data1.dat
23 34 54
43 45 76

[code]...

View 4 Replies View Related

Programming :: Finding A Shell Script To Delete Files Which Location Should Be Read From A Log File?

Jul 16, 2011

I have 2 external hdd in wich I have all my files.... yesterday, I have copied all the files from hdd2 to hdd1 and I want to eliminate duplicates so I used FSLint to find them, now, I have a txt file that looks like this:

Code: /media/My Book/!!!MIS DOCUMENTOS/Documentos/2 sep2003-jun2009 USB/!TESIS/TESIS/TESIS CVT LABVIEW Y CODEWARRIOR/LabVIEW85RuntimeEngineFull.exe /media/My Book/HDD_Toshiba/Borrable/Pen_Drive_4GB/Tesis/Super CD de la tesis/LabView/LabVIEW85RuntimeEngineFull.exe multiplied by millions of entries...

now I want to make a shell script to delete all the files/entries (read from the log file) that begin with:

Code:

/media/My Book/HDD_Toshiba/**** Since HDD_Toshiba is the folder in hdd1 (MyBook) that contains all the files from hdd2

View 1 Replies View Related

Programming :: Manipulate The "ps" Source Code In Order To Hide A Process?

Feb 21, 2010

how can i manipulate the source code of ps command in order to hide a process from the list that run by ps.as you know ps command list all the process that exist in /proc.so how can i do this??this is part of my assingment...

View 13 Replies View Related

Fedora :: Icons Of "default Application" / Get Predefined Application Icon To Open Same File Types?

Jan 7, 2011

I would like to get the predefined application icon to open the same file types.

for instance: *.avi, *.mp3 to have the VLC icon

and other application to have the icon of their default application.

So far I only found tips to install single icons or to add icon packs. :S

and is there any way to when you install an application make it default for such file types ?

View 1 Replies View Related

Programming :: Location Of - Gnu - C++ Standard Library

Jul 21, 2010

Where is the location of the header files for the c++ standard library?

I assume that they were installed by gnu g++, please correct me if i'm wrong.

I'm running ubuntu 10.04 with g++ 4.4.

I looked in /usr/lib/gcc/i486-linux-gnu/4.4/include, but this directory contains only the following:

Code:

Which doesnt seem to include the really basic things like iostream, for example.

Where can I take a look at the header files for these standard c++ libraries?

View 2 Replies View Related

Programming :: Byte At Memory Location 45 With Immediate Value 03

Jul 10, 2011

As 2.17
I want to code this:
and byte[45],03

In words, AND the byte at memory location 45 with immediate value 03. As reports "Ambiguous operand size for and". How could I code the instruction such that as understands my intention?

john: .byte 45
and byte[john],03
gives the same error.

View 8 Replies View Related

Programming :: Finding Location Of Duplicate Directories

Jan 8, 2011

This simple task is proving harder then imagined. I have a multi-level directory that I'm trying to clean of duplicates, but I can't get 'find' to print what I need to see. To give an illustrative example, here is a dir:

Code:
stuart@stuart:~/testdir$ ls *
dir1:
level2:
dir1

So the output of find as i'd like it to work would show the two locations of dir1, which would be ./dir1 and ./level2/dir1. But no:

Code:
stuart@stuart:~/testdir$ ls -d */ | head -1 | find . "`cat`" -type d
.
./level2
./level2/dir1
./dir1
dir1/

View 2 Replies View Related

Programming :: Write A Value From A Specific Memory Location In C?

Jul 13, 2010

How to write a value to a specific memory location in C language and how to access the same value ?
I am trying the same on fedora linux and i am trying to write the value to the 32-bit address.

View 2 Replies View Related

Ubuntu :: How To Manipulate Iso Files

Jan 17, 2010

What we want to do: be able to see the contents of an iso image (what files exist in the iso image) as well as being able to add data to the iso file or remove them.In order to be able to see the contents of an iso image we have to follow a process similar of that like mounting a device. In order to do so let us assume that we have the file: example.iso, under /home folder.In order to do so, we have to install the program isomaster (go to synaptic package manager and type isomaster and the program will be displayed) and then open it (via applications->sound&video). Then, browse to where the iso image exists and with the options: remove, extract, e.t.c. do the necessary steps you want. In order to save this "new" iso image with the additions you have made, you have to save it as an iso file. Go to file, save as and your new iso file is ready to be burned.

View 3 Replies View Related

Software :: Can Manipulate .pdf In Linux?

Jun 2, 2010

i have a .pdf that i scanned in at kinko's today. unfortunately one of the pages was scanned upside down.is there a way for me to correct this in linux such that i can just open the .pdf select the page and rotate it until it is right-side up?

View 2 Replies View Related

Programming :: Codeblocks Plugins And Header Files Location?

Jan 29, 2010

I installed Codeblocks and build some programs, but I have two questions:1. Where are my header files placed, since I don't know where codeblocks is installed. Soemetimes I have to remove header file extension (.h) to be able to compile some source. I use gcc as setting for codeblocks to compile and build programs.2. Plugins for Codeblocks can be installed, but when browse codeblocks's wiki I can't find download links neither developer pages

View 3 Replies View Related

Networking :: Manipulate An URL On The Client Side?

Nov 23, 2010

i'm unable to see some musicvideos on videos in germany trough copyright restrictions. i can see these videos by using a tunnelservice, but it isn't very comfortable.
in that case, i have to copy the url and paste it at the end of the tunnelservice url. a lot of stupid work.

my problem is, that i haven't enough experience to automate these actions.

i think, that i have to modify the url befor it goes to the server. there must be somewhere in the osi stack a place where i simply can modify that url with a regex but i don't know where

View 4 Replies View Related

Ubuntu :: Copy File To New Location?

Nov 29, 2010

File is named similar to : logout 10.10.10 100817.txt

I need to copy this to a new directory.

To fine the latest file I was advised to use code...

View 3 Replies View Related

Ubuntu :: Location Of File To Run At Boot?

Dec 30, 2010

How would I edit, from Terminal, the programs that run at boot? I'm making a project that's actually kind of cool and I need to add a program and remove a program, all without using a GUI.

View 2 Replies View Related

General :: Copy Only New File To Other Location?

Jul 19, 2011

I am a fresher in shell script, I want to copy only new file in a directory to some other location. I am able to find new file using
"ls -ltrh | tail -1", it is showing new file. But I don't know how to add in the shell script to copy that new file to other location.

View 7 Replies View Related

Programming :: Use Gtk_window_set_gravity Function To Init Window Location On Screen?

Oct 18, 2010

I use gtk_window_set_gravity function to init window location on screen. I use different parameter value in Gravity,window location always at top left of screen.I use ubuntu 10.04. Code by follow:

GtkWidget * window, *label;
gtk_init(p_argc, p_argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);

[code]....

View 2 Replies View Related

Programming :: Source Code To Get The Location Of Installed Files After Rpm Installation

Jul 25, 2011

The rpm command to get all the list of all installed file location after rpm installation is rpm -ql <rpm file-name>

View 7 Replies View Related

Fedora :: Way To Easily Manipulate Photos And Scans

Jul 17, 2010

I own Fedora Core 12 and an HP scanner. I want to make digital copies of all the pictures I took a few years ago. I have a lot so I tried scanning five at a time thinking I could cut and paste into smaller images like with MS Paint on Windows. HPLIP 3.9.12 wouldn't let me modify the scans so I tried GIMP 2.6.10. GIMP 2.6.10 is a nightmare! When I opened my scan of five pictures I had trouble opening a new image. Then I had to specify the size of the new image. The when I cut and pasted I couldn't rotate. Then when I figured out how to rotate my image was too small.

Then I tried scanning just one picture but HPLIP left a lot of blank space. I tried cropping out the blank space with GIMP but the image size was the same with the blank space. I don't want to post photos to Flickr that are mostly empty space.I wish I could show you examples but the forum won't let me post them.Any ideas or suggestions for a program for Fedora Core 12 that's got the functions and features of MS Paint?

View 9 Replies View Related

Security :: Bypassing ISP Using SSH / Manipulate SSH Packets Between Two Computers?

Sep 1, 2010

I setup a SSH server on my computer on a very high port, so that my brother could surf the web through my computer from Iran, since the majority of websites are filtered there.

Today, he told me he cannot connect to my computer. That's why, I got suspicious that they are doing packet based filtering instead of port. Then I decided to change the port to 433 for https, but one of my friend told me that they just banned https in Iran as well.

I was wondering if there's any way I can manipulate SSH packets between two computers so that my brother's ISP won't figure out he's exchanging SSH packets?

View 2 Replies View Related

Ubuntu :: OpenMotif : Create Network Location Link As Local Filesystem Location?

Apr 26, 2011

I'm working with a program that uses Open Motif to create all of the widgets, including the Open File dialog box (obviously). However, Open Motif being kinda old-timey, 80's vintage, and for the most part now an abandoned project, it is quite clunky. So, actually what I need to do is to open some files located on my work server. I have already successfully connected to the relevant server directories with Samba, and with programs built with GTK+ (such as GIMP) I can open files across the network because I have created a bookmark in Nautilus, and those bookmarks appear in the Open File dialog box created by GTK+. Now, Open Motif is different: it doesn't see network locations, orNautilus shortcuts. When I type "smb://serveripyadayada" in the search folder, it really doesn't like it and complains. So, what do I do? Can I get somehow Open Motif to open a network location? Or can I do a run-around and place a shortcut in the file system that points to the network location?

View 2 Replies View Related

General :: Open File Without Specifying Exact Location

Jun 15, 2010

I have a file in some obscure directory that I want to open and edit. I don't want to do something like this...

vim ~/foo/bar/blah/doh/ugh.txt

I'd rather be able to say find this file and open it. I know there are commands like locate and find to find a file or directory, but I'm not sure whether these can (or even should) be utilized in what I'm trying to do. Basically, what is the simplest way to open a file with a program w/o specifying its exact location? (In cases where there isn't another file with the same name in the entire system, and cases where there are multiple).

View 3 Replies View Related







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