Ubuntu :: Linking SH Back To Bash?

Jan 4, 2011

What issues will I create for myself if I link /bin/sh back to bash?

View 3 Replies


ADVERTISEMENT

General :: Bash - Mirroring Of Multiple Directories - Hard Linking

Apr 11, 2011

I have 5 FTP users that upload files (and subdirectories) in their home directory, i need to mirror theese directories beetween them and with a "master" directory (accessible from a 6th user). Files can contain spaces or others special caracters. All the files are in the same filesystem, and i want to use hard link because i don't want to waste 5 time the space of a single file. I tried with find but i cannot handle spaces in it.

View 1 Replies View Related

Programming :: Static Linking Versus Dynamic Linking

Apr 18, 2010

I have written an OpenGL based program which uses i.a. libjpeg that I want to link statically so I can send it to someone who doesn't have all the libraries needed installed to allow for a dynamically linked executable to run. As such I tried with giving the [b]-static[b] parameter to gcc.

Code:

x86_1$ make
gcc -O3 -c jpegloader.c
gcc --std=c99 -O3 -c --std=c99 -I/usr/include -L/usr/X11R6/lib main.c

[code].....

Why would gcc claim that I'm missing GLUT? This works perfectly fine when I do dynamic linking -- i.e. omitting the -static argument.

View 13 Replies View Related

General :: Bash - Get ' Quote ` Back-tic Through The Shell Into Sed?

Aug 3, 2011

In linux how do I to get the ascii decimal/hex/oct code from a char or a ascii char from a decimal/hex/oct code. I see from the gnu sed user manual that I can use the d# o# x# to specify a character but I am not sure how to use that. If some one has a better way to get the the ` and ' chars through I want to sed with the backtick '`' character and ''' single quote character.

sed '/`/p'

these don't work

sed '/'/p'
sed '/`/p'

View 3 Replies View Related

Programming :: Passing PHP To Bash Script And Then Back?

Jul 15, 2010

I have a bash script called bash I am trying to execute from PHP. I think I have that right (not sure yet). Ideally let me explain what I am doing. The front end will pass a variable from a text entry box, called New_Task, the New_Task needs to be executed in the bash script and the output needs to be displayed back on the front end. So let me give some code and let me know what you all think.bash code is quite long, but essentially it is made to take a entry and create a task out of it. eg. "svn branch <Task Name>". The code below is getting the New_Task variable passed from the text entry box ($NewTask) and I have an exec for the bash script, but I am not sure it is working, I need to add some code to see the input in the front end.PHP back end code:PHP Code:

function mTaskCreator()
{
$strAction = $this->_objUserContext->mGetPostVar( 'acti

[code]...

View 7 Replies View Related

Red Hat :: Running Back Ground Jobs In Bash?

Jan 8, 2010

#!/bin/bash
jobid=$1
freq_count=$2

[code]...

View 2 Replies View Related

General :: How To Go Back Or Forward A Word In Bash Environment

Mar 3, 2010

How can I move around the bash commandline efficiently?In the Windows prompt, one can go back or forward one word by pressing ctrl and <-/->.What's the equivalent in a bash environment?

View 1 Replies View Related

General :: Execute Bash File - Always Back To Home Dir?

Apr 11, 2010

In my bash file I have asked to navigate to some subdir, unzip a file and stay there but when I type pwd I can see i'm always back to home dir.Any way to get shell stick to subdir?

View 4 Replies View Related

Programming :: Parsing Text Files In Bash / Cant Seem To Read The Array Back?

May 29, 2011

PI'm trying to write a script to list all open ports in the MINIUNPND chain in iptables and use the procotol, port and destination ip to open ports on another router using upnpc.Here is the output of iptables -L MINIUPNPD

Code:
>iptables -L MINIUPNPD
Chain MINIUPNPD (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere 192.168.3.124 tcp dpt:19955
ACCEPT tcp -- anywhere 192.168.3.124 tcp dpt:20054
ACCEPT tcp -- anywhere 192.168.3.130 udp dpt:10654
ACCEPT tcp -- anywhere 192.168.3.121 tcp dpt:29955
code....

No matter what i do i cant seem to remove the first 4 characters from the MYPROT array to leave only the digits. Also i cant seem to read the array back???

I thought it would simply be a loop reading each line and passing the fields in variables, executing upnpc commands i need then moving to the next line of the file until it reached the EOF.

View 12 Replies View Related

Ubuntu :: Linking Domain Name To Server

Mar 18, 2010

I have a domain name registered with Enom and have access to the domain settings, what I want to know is there a way I can link my domain name (sbarow.com) to my Ubuntu server. I would like to be able to type my [url] into my browser as opposed to [url] to access my server from other locations.

View 4 Replies View Related

Ubuntu :: Linking A Folder To A Harddrive?

May 13, 2010

i would like to link a folder, in my case that is 'Pictures' to a different harddrive with a folder containing pictures.So whenever i save pictures it would save by default onto the harddrive with the linked folder.How can i do that. I tried to do it with ls i think but this makes softlinks which did not let me open automatically open the other folder. omg i hope i don't make it to complicated to understand.So here a visual plan of it.the default folder/home/user/pictureslike to link it to /media/pictures/photoshotsso this is the harddrive (another internal harddrive) which contains a different folder where i store my photos in general.

View 9 Replies View Related

General :: Ubuntu 10.04 - Linking To Lua Libraries With Codeblocks

Jun 18, 2010

After I downloaded the source for lua, I followed the install instructions, doing...

make linux install
make generic install

I've also done the make test and it passes, printing out Hello World, from Lua 5.1. However, I can't link to the lua libraries in CodeBlocks. I know where lualib.a is (usr/local/lib) which I set in my Search Directories for the linker. I still get error messages like...

undefined reference to lua_isstring

P.S. I had this running on Windows via Visual Studio.

View 1 Replies View Related

Ubuntu :: Linking To External URLs In Tomboy?

Jul 18, 2010

Is there any way to embed a URL to an external web page in the text of a tomboy note, in the same way that other notes are linked to? I know I can just pates the URL into the note and have it link out, but when the link is over a hundred characters long (not kidding) then that stops being an option.

View 1 Replies View Related

Ubuntu :: Linking External Hard Drives ?

Feb 23, 2011

So me and my friend our on my network and we have done a bit of hacking and have managed to get music off of pandora and have it sort it by forlder /media/...../artist/album/song and it won't redownload a song that we have already downloaded (this is done by our code that we stripped from pithos and modified a bit) also we wrote a bash script that renames all of our files correctly and tags them with .mp3

I was wondering if I could link our two hard drives to make sure that we aren't both downloading the same songs. I am also having issues getting my external accessible on the network i have it formatted to use a FAT32 file system.

View 1 Replies View Related

Ubuntu :: RHEL GCC Libraries - Versions - Linking ?

Aug 1, 2011

My principle machine is Ubuntu 10.10 (x86_64) with gcc version 4.4.5, but I'd like to run the compiled/linked code from it on a RHEL server release 5.4 with gcc version 4.1.2.

Now, the error at runtime is "version 'GLIBCXX_3.4.9' is not found (required by ./executable)". The server has /usr/lib64/libstdc++.so.6.0.8, but seems to need at least .so.6.0.9. However, the admin of the server will not allow the libraries to be updated as "the entire system is tied to an older version of glibc and forcing an upgrade could break the entire system especially when making the jump across major revisions."

He recommended that I build the newer version of glibc in my home directory and link against the libraries, but didn't offer direction on how.

View 1 Replies View Related

Fedora :: Linking Script To A Key?

Oct 1, 2009

I have created a Fedora 11 image with the GUI stripped out that autoboots into a mainframe terminal emulation program(c3270). I have everything working except for a print screen function. I have made a little script that will dump the screen from tty3 and send it to a printer, but I have no way for the end user to run this without giving them access to a terminal and I do not want them playing with that. So I was wondering if anyone knew a way to link the running of a script to a keybinding. That way all they have to do is hit Print Screen or some alt + key combo to get the screen capture.

View 2 Replies View Related

Programming :: Linking The Assembly And C?

Apr 29, 2010

I have a C code and assembly (nasm) code and I am not able to find how to link them each other. Here are the codes :
NASM side:

Code:

global_maxofthree
section .text
_maxofthree:

[code]....

I am using ubuntu 9.10 and my NASM version 2.05.01 compiled on Nov 5 2008.

View 4 Replies View Related

Ubuntu :: Linking MSN Account To Empathy Messenger For The First Time?

Feb 2, 2011

I tried linking my MSN account to Empathy Messenger for the first time - all went well But.I went to my friends house the next day and he told me that my MSN account status on his Windows PC MSN was continuously logging in and out. My computer had been switched off all morning and only used the night before. I went home logged on to Ubuntu 10.10 Empathy and I was logged off - I logged on and then logged off and rang my friend he told me that My status was now showing "That I was away"

I have dual boot system (xp) I went and changed my MSN password and question- should I be concerned is this a known software glitch/ security issue?

View 1 Replies View Related

Ubuntu :: Linking User Theme To Root Does Not Work

Apr 17, 2011

I ran:
Code:
sudo rm -R /root/.themes
sudo rm -R /root/.icons
sudo ln -s ~/.themes /root/.themes
sudo ln -s ~/.icons /root/.icons
but on running
Code:
gksu nautilus
It still uses the same theme, not my own.

View 1 Replies View Related

General :: Linking Ubuntu To Windows 7 Computer - Both Are Laptops

May 12, 2011

can i link my linux (dedicated) to my windows 7 computer - b0th are laptops.

View 3 Replies View Related

Debian :: Prevent Grub-pc From Linking To Other OSs?

Oct 25, 2010

I want to prevent grub-pc from automatically creating links to other operating systems on my laptop. Whenever there is a kernel update, grub.cfg ends with links pointing at my Windows 7 installation - I want to get rid of those links. At the moment I am doing that by manually editing the grub.cfg file and it has always worked that way. I tried to force grub-pc to avoid creating links to Windows by renaming the relevant scripts in /etc/grub.d edbarx@edbarx-pc2:/etc/grub.d$ ls 00_header  05_debian_theme  10_linux  20_linux_xen  _30_os-prober  _30_otheros  40_custom  41_custom  README As you can see I added an underscore to the files that I don't want to be executed.

I think this can be solved by changing the file permissions of the unwanted scripts making them impossible to execute.

edbarx@edbarx-pc2:/etc/grub.d$ ls -l
total 52
-rwxr-xr-x 1 root root 6433 Aug  7 18:10 00_header
-rwxr-xr-x 1 root root 1474 Jul 16 18:46 05_debian_theme
-rwxr-xr-x 1 root root 4252 Aug  7 18:10 10_linux

[Code]....

View 11 Replies View Related

Debian :: Linking Remote Servers ?

Apr 1, 2011

We have one office with a simple samba server running on Lenny; not a PDC, just simple username/password authentication. It also acts as a DHCP server, NTP server, and DNS server. All clients are windows machines (mainly XP Pro, but also starting to get Win7 show up). For remote access, most users have chrooted WinSCP; OpenVPN was setup, but too slow for most AutoCAD uses (our primary application). It is still used by a few people, though.

I need to set up a similar system in another location, and need to provide access to both servers. People mainly access files stored in their own office, but will occasionally need to access files in the other office. In intend on having both run the same version, whether I stick with Lenny or put both on Squeeze.

I was thinking of setting up both servers, and then mounting the remote file system (the "other" server) over the internet, possibly via sshfs, but do not know if it is reliable enough. Or perhaps via OpenVPN connecting the servers, but then the overhead of the VPN may become an issue, adding lag time. The remote shares would then be accessible via the samba config.

Are there other options that may be easier to set up, more reliable, or more secure? We do not want a domain set up, just simple workgroups. Since many are using their personal laptops, joining them to the domain can cause some problems. It would also require more effort to add a new computer, and with the constant stream of outside consultants we use, that could get cumbersome.

My main issue: no budget beyond the low cost box for the second file server, so it has to be an open source solution from start to finish.

I'm not quite a newbie - I have quite a bit of experience setting up and maintaining basic Samba / DHCP / ssh servers - but not much beyond those. I certainly am open to learning new things and doing the research, but my head is swimming with all the options I have come across.

View 1 Replies View Related

Fedora :: Linking To X Development Libraries In GTK+

Oct 17, 2010

I am running Fedora 13 on a ASUS G71G Trying to install GTK+ 2.4.8; after installing all the dependencies(Pango, Glib2.0, ATK), I ran ./configure from my GTK+ directory. It configured for a while, then this happened: checking for X... no configure: error: X development libraries not found I tried linking them with PKG_CONFIG_PATH=<path to X lib directory>, but I got the same error message. How do I get GTK+ to recognize the X development libraries? Additionally, does the default build of X11 on Fedora 13 contain the appropriate libraries? Ive included the GTK+ configure scripts as an attachment.

View 1 Replies View Related

Red Hat / Fedora :: Linking Static Lib To Shared Lib?

Feb 23, 2011

I'm building a static library (openssl) and linking with a shared library. I built openssl static library with out -fPIC option and in the makefile of shared library there is an option of -fPIC. When I'm compiling shared library with static library, I'm not getting any relocatable error, since static library is not built with -fPIC and shared library is compiling with -fPIC.

GCC version : gcc 4.0.4
OS : CentOS 5.2

View 3 Replies View Related

General :: Linking GPL Apps To Non-GPL Libraries

Jan 20, 2010

I have a library that I have ported from Windows, and is not a derivative work of Linux. The library is subject to copyright law, and I can't disclose the source. I would like to link a GPL application to this library, and want to know if the linking would cause the library to be GPL. If the library becomes GPL, is there some other way (kernel loadable module?) that I can keep my library from becoming a work of GPL?

View 2 Replies View Related

Networking :: Linking DNS From Multiple Servers?

Jul 14, 2009

I have a wide area network with 7 CentOS servers running Bind and 1 Windows 2003 server. All 8 of these servers handle DHCP and DNS at their respective locations. At each site I can ping computer.site.company I'd like to be able to resolve the dns names from site to site. So from site1 I would like to be able to ping computer.site2.company and get a response.

View 4 Replies View Related

Programming :: C++Linking Classes/.cpp Files To Run One After Other?

Apr 11, 2010

This is probably a really stupid thing to ask considering the development I'm doing (effectivly creating a virus scanner), but how do I link classes/cpp files?I have 3 applications/sections that I can compile/combine with a makefile, that's fine, but I need them to run 1, 2, 3 once the output from the makefile is done.Currently the only section to actually run is whichever I have "main" in and obviously if I put that into all three, they won't compile as one.I've been looking all over the place at all sorts, header files and such, but there is no mention of how toually do this although I'm sure it must be possible. I'm used to being able to do this in Java and I'm sure I've seen C++ applications do it, but not worked out how.I have 3x .cpp files which are combined into one using a makefile:

Code:
# Virus Scanner
scanner.out : ProgramList.o MD5Hash.o HazardCheck.o

[code]...

View 2 Replies View Related

Programming :: GCC Static Linking Error ?

Jun 10, 2010

There's a problem with static linking (and no problems with dynamic linking).

Here's my code:

Quote:

And makefile rule:

Quote:

That's dynamic linking. And it works perfectly. If i use static linking

Quote:

There is an undefined reference error:

Quote:

As nm shows there's a symbol named BuzzerInit in static library.

View 2 Replies View Related

Programming :: Linking Options For Python?

Dec 11, 2010

I am trying to build an application that must link with python so as to load a python module during runtime.I have this makefile :

Code:
[alex@iskandhar src]$ cat Makefile
CFLAGS = -Wall -O3 -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK

[code]....

View 4 Replies View Related

Programming :: Linking To XInput2.h Fails?

Oct 5, 2010

I have a really simple program trying to use XInput2.h, which fails on linking

Code:
#include <X11/extensions/XInput2.h>
int main(){
Display *XSession = XOpenDisplay(NULL);
int OriginScreen = 0;
int pID = 7;

[Code]....

I'm at a loss about what to do. Replacing XIWarpPointer by XWarpPointer and removing the pID argument solves it, but is not an option (no input ID).

View 5 Replies View Related







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