fatal error LNK1104: cannot open file '..\..\bin\Debug\ITKIO.lib'

I am facing this problem with Visual Studio. When I compile one project it says 'fatal error LNK1104: cannot open file '..\..\bin\Debug\ITKIO.lib'May I know how to solve this problem?I am trying to use ITK libraries inside VS. ...

execl() to copy a file /bin/cp

I am getting an error when I do this in C program:execl("/bin/cp","../data/data_.txt","../data/data.txt",0);error is as follows:../data/data_.txt: missing destination file operand after `../data/data.txt'Try `../data/data_.txt --help' for more information.I tried this t ...

filetype test: is a file bin. or text?

I want to search for a word in a list of files (a search engine). However, I don't know if a file is text or binary.In fact, I already have this script in perl and I am porting to php. In perl, I use:if(-T $filename){push(@file_list,$filename);}inside a loop. In php, I tried:if(filetype($filename) = ...

/mnt/sysimage/bin/bash: cannot execute file

I am virtualizing some machines from Dell 2950s running RHEL5 to ESX 3 using my own script running on Kanotix (a Knoppix 64-bit variant).I have a script that builds and copies the data, but I need to rebuild the kernel due to device changes.chroot /mnt/sysimage/root/mkinitrd fails. It is an edited c ...

Ubuntu bin file problems

i have a bin file that i'm trying to install, its currently on my desktop.i went to my decktop folder with cd Desktop okay, but wen i try./file.bin i get command not found error.even with sudo ./file.bin i get the same error. ...

how to convert text fine to bin file

I am also facing problems in converting a file.txt to a file.bin. ...

Ubuntu error msg when install .bin file

I just installed ubuntu 9.04 and wanted to install a software that came as .bin format.Here is what I did1. sudo chmod +x file.bin2. sudo ./file.binBut I got the following error message:./file.bin: 2: Syntax error: word unexpected (expecting ")")Anyone got an idea why? I installed this sof ...

Ubuntu RKhunter-Multiple File Permissions Changed-/bin/su

Alright, there was an update yesterday that had something to do with passwd (assuming it was to do with the VMbuilder vulnerability posted here: http://www.ubuntu.com/usn/usn-670-1)I ran an RKhunter scan today and had multiple warnings come up...I'm assuming this is because RKhunter was ran after th ...

Deserializing objects from .bin file into arraylist

I'm working on an app that takes an object, serializes it and appends it to a binary file. What I'd then like to do is deserialize the stored objects and add them, one by one, to an ArrayList. I have no problems serializing each object and appending it to the file, but I have questions about how to ...

Ubuntu nmap and "bin.lua" Lib-file?

Using 8.04 server, no GUI.Just installed NMAP from the repos, and, later, LUA5.1 (for nmap scripting). When trying to run various nmap scripts (NSE files), or just something simple like:nmap --script-updatedbto refresh the nmap BD file, I got numerous messages about missing LUA files in the Scripts ...

Ubuntu bin file not executing

don't know if this belongs in the beginner forum or not. I have been trying to execute a bin file in the terminal and am having issues. I am running the latest x64 stable.first I set the permissionschmod a+x file.binthen when I try the next step I have issues./file.binit gives me:ELF file or directo ...

Ubuntu /bin/sh: bad interpreter: Text file busy

Just upgraded from Dapper to Edgy. No errors so far *thanks* but this one:$ /path/to/file.bin'bash: /path/to/file.bin: /bin/sh: bad interpreter: Text file busyTried that by using sudo, too, same result.Recreated the symlink byln -s /bin/dash /bin/shbut it didn't help.Executing /bin/bash /path/to/fil ...

Ubuntu install file .run, .sh or .bin

This is my problem: if I try to install this format of file: .bin , .sh or .run , nautilus it says to me that it is impossible to open the file (and I do it from root!).This it happens also with the games on Cd like quake 3 or soldier of fortune, even if on other distros (using kde), the autorun wor ...

Ubuntu accidentally deleted bin/bash in 10.04

I accidentally deleted file /bin/bash.Is there anyway to get the same copy of this /bin/bash file.I appreciated for your help. ...

Cron file

i'v got this entry in my crontab file* * * * * /bin/date >/tmp/date.out 2>&1can anyone tell me what this means? ...

Ubuntu Compiling .bin module & Help My Sanity

This is unfortunately a necessarily long post. I'm not a command line beginner, but as to compiling, I'm completely noob. Quotes from others in RED color.I have an AMD Athlon II X4 620 CPU. That's a 4 core cpu. It requires a module (is that a driver?) named k10temp (or something like that *.ko) to l ...

Binary File Problem

I'm using c++ for my development. I'm curently having problem. My program capture image from a camera and output it as a binary file which contains 0 and 1. I need to convert this bin file to jpg or bmp type.How should I proceed to solve this problem ?I got an example python program which can open t ...

Ubuntu running a command from a text file.

all, I've just started playing about with printers and commands and stuff. So in the terminal, I'm entering in echo -en "\x1bd2" >/dev/usblp0this triggers the blade from the printer to work.However, if i stick that in a file #!/bin/shecho -en "\x1bd2" >/dev/usblp0;exit 0The ...

How do i open .bin files on ubuntu?

im just curious because i want to install java but im not sure howi read that im supposed to put the .bin file in the home folderand then on the top txt box where it shows ur location by /amir/home/desktop etc..to type in "./(name of file).bin and it would magically openbut that doesnt seem to ...

A probably simple problem with installing .bin files

I am sure my problem is easy to rectify however I have googled this problem and searched through the forum to no avail. My problem is, as the heading indicates, installing .bin files. I have used the command "chmod +x file.bin && ./file.bin" and also attempted to play around with t ...

UP2DATE messed up file permissions!!!

I upgraded from Redhat 7.2 to Redhat 7.3 using up2date. Almost all of theupdates worked out fine except I get the following error with these rpms:Testing package set / solving RPM inter-dependencies...########################################fileutils-4.1-10.4.i386.rpm ########################## Done ...

Mounting .Cue/.Bin files without burning?

Well, basically I have a cue file and a matching bin file that I would like to mount without having to actually burn them on to a cd?I tried mounting the .bin using the loopback device (mount -o loop file.bin directory/) but it didn't work since apparantly mount can't mount bin files, only ISO files ...

Ubuntu script wont save to file

Im trying to create a very basic script, but it wont save anything into the designated file. File is created, but no results are saved in the file#!/bin/shecho “here are your dmesg results”dmesg./hyburn.sh >> /home/hyburn/Desktop/dmesg.txt ...

Ubuntu Script works but NOT in bash script file.

this is my script file:#!/bin/sh#run testlinkphp -f /path/to/file/index.php#sync live folder.sudo rsync -av /path/to/file/playlists /path/to-file/playlistsWhen i run: php -f /path/to/file/index.phpin termninal it works but in the script i get following error:root@server:/home/niklas# ./scriptname.sh ...

MySQL accounts from a file

Is there a way to create MySQL accounts, set the rights, and create the password by reading the usernames from a file? I use the following script to create accounts from a file.#!/bin/sh### Creates users from a file#FILE=/tmp/scripts/pouser.txtif [ ! -f $FILE ]thenecho "ERROR $FILE doesnt exist ...

Ubuntu RKhunter log file

Please can someone check this rkhunter log file and tell me if there is anything wrong. I am getting many waring messages.[18:01:46] /bin/ip [ Warning ][18:01:46] Warning: The file properties have changed:[18:01:46] File: /bin/ip[18:01:46] Current inode: 485012 Stored inode: 483375[18:01:46] Current ...

Ubuntu install .bin driver

I've downloaded the driver for a wireless router from their official site and it's a bin file. I've chmod 777 and tried ./file.bin and it says it cannot execute it, so I've run file file.bin and it says it's a data file. Ok so I figured it's an image file and I tried mounting it in MagicISO and it s ...

Is it possible to read a binary file?

I am trying to make a small program which will write to a binary file,this is my code:// program that writes to a binary file#include <iostream>#include <fstream>using namespace std;main() {fstream* bfile = new fstream("file.bin", fstream::out | fstream::binary | fstream::ate); ...

Objcopy generated a huge binary file

I would like to use objcopy to generate a raw binary file so that I can load it directly into memory. However, the following objcopy command gave me a huge file.objcopy -O binary file.elf file.binWhat is the right options to use? Please note that the elf file is for MIPS 3000 core and the "Entr ...

cgi php "No input file specified." and other weirdness

Red Hat Linux release 7.2 (Enigma)Apache/1.3.22 (Unix) (Red-Hat/Linux)I am having a hell of a time getting php cgi to run my script and provide PATH_INFO instead of coming back in my browser with a "No input file specified."I want to pass parameters to my script via the 'path'. This will a ...

File Streams

I have 2 questions & This is my Code SnippetIam using this file for outputofstream out("File.bin",ios::out|ios::binary);void WriteValueInBinary(char * Text){wstring Target1; char *p = (char*) Target1.c_str();for(int i=1 ; i&lt;=len ; i++ ){if (*p ==NULL)out&lt;&lt;"0 ...

Running a CGI File In HTML

I am working on a project using HTML, PHP, and LINUX shell commands to create a dynamic web page but I seem to be having some trouble figuring out how to run the .cgi file with the shell commands in it using either HTML or PHP (if they are both an option, whichever one is more efficient).This is the ...

Ubuntu Record stream, increment file name output

I am using a shell script to time and record radio streams, but have occasionally overwritten one output file with the new one when cron timing more than one event. How can I change my script to increase the output file name with a number each time to avopid overwriting in future.Here is my script f ...

Ubuntu Question about a bash file

I'm new to linux/ubuntu. My general question is:I've written a bash file--#!/bin/bashmeep /home/amit/webflux.ctl >& webflux.outmeep webflux.ctl | tee webflux.outh5topng -S 3 webflux-eps-000000.00.h5 -c /usr/share/h5utils/colormaps/grayh5topng -S3 -ZC webflux-eps-000000.00.h5 -c /usr/share/h5u ...

Ubuntu Help in bin installer

I downloaded Java SE Development kit from Sun's page. It was a .bin file.I installed it usingchmod a+x file.bin./file.binThe installer ran and ended fine but it had created a folder in my desktop which was actually the installation.Apart from the fact that I want to move from the desktop, firefox st ...

Ubuntu Shell Script to change hosts file

Can someone help me write a script to switch back and forth between two hosts files? I move my laptop between work and home, and when I am at work I need to point towards the private ip's for our servers, where as from home, I just need to point to th regular DNS addresses.I have written a script to ...

Ubuntu Crontab creates an empty file

First at I want to tell that I'm from the Netherlands, so I'm sorry if I'm hard to understand :)I've created some days ago a bash script to make a backup of my openbravo database which is using PostgreSQL.When I run this SH file it's creating a nice backup located somewhere in my home folder, with a ...

Inserting a header into a file?

I have code that reads in a file, adds some metadata at the beginning, and outputs the file with the header in it. Here's the code:#include <fstream>int main() {std::ifstream theFile;int filesize = 1024*1024*20; // 20 MB filechar *data;data = new char[filesize];theFile.open("file.bin ...

How would I Read in a binary file in Big endian

What i would like to do if possible.Is to convert my code to read in the data in big endian format.how would I do this?// reading binary file#include <iostream.h>#include <fstream.h>const char * filename = "file.bin";int i=0,y=0,z=0;int main () {char * buffer;long size;ifstream ...

File Streams

I have 2 questions & This is my Code SnippetIam using this file for outputofstream out("File.bin",ios::out|ios::binary);void WriteValueInBinary(char * Text){wstring Target1; char *p = (char*) Target1.c_str();for(int i=1 ; i&lt;=len ; i++ ){if (*p ==NULL)out&lt;&lt;"0 ...

binary file i/o

How do I read/write a file 1 byte at a time? I tried using OPEN "file.bin" for binary read. This works but is very slow. I looked at the FileSystemObject but only seem to find Textfileopen and write. Can the FSO do binary? is there a better way then the old OPEN command?Jean-Guy ...

Ubuntu Rkhunter file properties changed

I run rkhunter on a regular basis, and lately I have been seeing warning messages that file properties have changed. Have there been any recent updates (past month) to Lucid that would cause this?[12:12:51] Running Rootkit Hunter version 1.3.6 on lasko-desktop[12:12:51][12:12:51] Info: Start date is ...

Ubuntu OSSEC detecting trojaned /bin/login on Lucid

OSSEC is detecting a trojaned version of /bin/login on a Lucid clean install.[FAILED]: Trojaned version of file '/bin/login' detected. Signature used: 'bash|elite|SucKIT|xlogin|vejeta|porcao|lets_log|s ukasuk' (Generic).Is this a false positive? ...

Ubuntu Has my server been compromised? rkhunter file property warnings

I just ran rkhunter on my server and it returned some warnings that have me concerned.[00:46:19] Performing 'shared libraries' checks[00:46:19] Info: Starting test name 'shared_libs'[00:46:19] Checking for preloading variables [ None found ][00:46:20] Checking for preload file [ Not found ][00:46:20 ...

Ubuntu What is wrong in my .sh file?

I made a .sh file to make ubuntu detect my wireless card, but when i run it it won`t run the last line "ifconfig ath0 up".When i type it in manualy it works fine.WHY???Here is the file:#!/bin/shmodprobe ath_pci#finner kortet#wlanconfig ath0 create wlandev wifi0 wlanmode sta#laster driver#w ...

Ubuntu How can i decompress .bin files ?

I connected via SSH on my Root Server, i have the .bin file tranferred over FTP now i give the file permissions (chmod 777 *name of the bin file*.bin).Now i will decompress the file with the followed command: /home/example/test.binbut always i get the message " No such file or directory"So ...

Ubuntu how to properly edit a .vnc file for vncserver?

here is acopy of the current .vnc/xstart file#!/bin/sh# Uncomment the following two lines for normal desktop:# unset SESSION_MANAGER# exec /etc/X11/xinit/xinitrc[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvnc ...

Oracle Create new database from RMAN hot full ,atrchivelog and control file backup

I am trying to create new database U1234 from P1234 from RMAN hot full ,atrchivelog and control file backup of P1234.here is my steps 1) restore control file#!/bin/shORACLE_SID=P1234export ORACLE_SIDrman nocatalog target / << EOF | tee restorecontrol.outstartup nomount pfile=/u01/oradba/admin/ ...

Ubuntu script file/diff files

here is a script fileand below is the diff file which part of the diff file files goes in the script file please?thanksLex1:o ---------------------------script file#!/bin/sh## How to write a shell script# http://vertigo.hsrl.rutgers.edu/ug/shell_help.html## Script configuration# ==================== ...

Oracle Howto: mount XE WebDAV to OS file system

I did write small bash script tot mount XE WebDAV folder to server file system.This is tested on Ubuntu 8.04 server and depend package davfs2Create file called xewebdav to /etc/init.d/Likesudo nano /etc/init.d/xewebdav copy paste below code to file#!/bin/bash # Mount and unmount Oracle XE WebDAV fol ...