General :: Create Symlink For Every File Want To Include?

Jul 4, 2010

I have a CMS I have developed, which will run on several sites all hosted in sub directories on my dedicated server. I want to create symlinks for the main files of the CMS, including all config files, functions and admin sections. Then there will be a few files specific to each site.I read some tutorials on creating symlinks, although most are not very good in my opinion.

Do you have to create a symlink for every file I want to include? Or can I just create a symlink to a directory? For example:CMS is located at /www/cms/.Can I make www/domain1/ point to that directory, and if so, will all files include themselves correctly. I think I am a bit confused on how this works.

View 1 Replies


ADVERTISEMENT

General :: Possible To Create A Symbolic Link That Include Commands For Program?

Feb 11, 2010

Is it possible to create a symbolic link that include commands for the program?

For instance, I do the following to start the program:

./script -somecommannd

I would like to create a symbolic like that includes "-somecommand"

Is this possible? or would I need to create a second script that executes that command, and link to that script?

View 4 Replies View Related

General :: Use Symlink To Provide Access To A Specific File Under A Restricted Directory

Jan 24, 2011

My home directory's permissions allow only myself access to it. Is it possible to put a file inside my home directory with.. say.. full permissions, and create a symlink to it so other users can access that file alone inside my home folder? System is Ubuntu Karmic.

View 2 Replies View Related

General :: Include File Name To Extracted Files?

Apr 28, 2011

I've written the script below to merge only .txt files that exist in one directory into one huge .txt file and ignore other files with other extensions. now the result is one huge .txt file with all the contents of other .txt files

how can i add the File Name as a comment before each file?

//FileName

Code:
system='/path/to/my/directory'
cat `find ${system} -name '*.txt'` > outputFileDirectoryName.txt

View 13 Replies View Related

General :: Possible To 'include' A Global SSH Authorized_keys File?

Apr 22, 2010

Is it possible to 'include' a global SSH authorized_keys file?

For example, I have user accounts user1,user2,user3 and my user name is Benjamin. I want to be able to use my ssh key to authenticate as each of these users. I can manually copy my key to each .ssh/authorized_keys file individually, but is there a way to simply include /home/Benjamin/.ssh/global_authorized_keys in each of these user's authorized_keys file without manually adding and removing?

View 2 Replies View Related

General :: Include Vim Settings In Source Code So That The File Is Displayed The Same Way?

Feb 15, 2011

I vaguely remember that there is a way to store instructions for vim in my file (like tabstop width etc). I'm not speaking of settings in vimrc but of storing those settings with in the file to be edited. That way the tabstop has always the right width even if I transfer this file to another computer. However, I can't remember what the magic word is so that vim picks up those settings when loading the file.

View 1 Replies View Related

Software :: KDE Paste A File As A Symlink?

Jun 16, 2010

if it is possible to copy and paste as a symlink.

It seems to me that the only way to create a shortcut or symlink is through the command line. I use KDE.

This was one of the most basic things Windows could do since Windows 95, and is one of the simplest shortcuts I dearly miss since leaving Windows.

View 5 Replies View Related

Software :: BIND Can't Open Its Config File (via A Symlink)

Jan 26, 2010

Got these messages in syslog:

Code:
Jan 26 15:24:58 marconi named[28544]: starting BIND 9.6.1-P2 -u bind
Jan 26 15:24:58 marconi named[28544]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool'

[Code]....

This is BIND 9.6.1-P2 running on Ubuntu Server 9.10. When I move all the files from /var/bind into /etc/bind (replacing the symlink that was at /etc/bind), and change all instances of "/var" to "/etc", then it works. It seems to be the symlink that is doing it. Yet I need to get this moved over to "/var" and the Ubuntu packagers built it to use "/etc/bind".

Also, when I su to user "bind" and run "md5sum /etc/bind/named.conf" (with the symlink in place) it is able to read it just fine. Other users can read it just find. It's the "/usr/sbin/named" program that can't.

View 2 Replies View Related

Debian :: Create Custom Boot Disk That Would Include Some Programs Already Installed On Computer

Dec 3, 2010

I would like to create a custom boot disk that would include some programs already installed on my computer, so I wouldn't have to re download them, is there a way to do this?

View 2 Replies View Related

Ubuntu :: Symlink Unavailable Without Touching Target With File Manager

Apr 22, 2011

I have a dual-boot setup with Ubuntu and Windows 7, sharing an NTFS file system.If I create a new folder (called "newfolder") in the root of my Windows 7 partition, with a text file called newtextfile.txt, and then create a symlink in Ubuntu with ln -s /media/S3A8115D003/newfolder.I can then see, read and edit "newtextfile. txt" from Ubuntu, until I log out and reboot.After I reboot, the symlink to newfolder still appears to be there but when I try to access it, I get This link cannot be used, because its target "media/ S3A8115D003/ newfolder" doesn't exist.However, if I first navigate in the file manager to the Windows folder S3A8115D003/ newfolder and view its contents, then the Ubuntu symlink appears to be healed.How can I make the symlink work without first having to touch the target file with the file manager?

View 8 Replies View Related

Ubuntu :: Difference Between /usr/local/include And /usr/include?

Jul 11, 2010

What is the difference between /usr/local/include and /usr/include? When I compile my program, is both /usr/local/include and /usr/include avaliable? Can I copy a file from /usr/local/include to /usr/include?

View 1 Replies View Related

Software :: Difference Between /usr/include And /usr/local/include?

Jul 8, 2010

I just downloaded the SDL source code. i did compile and make of this code.then i did make install. but i didnt see the files of SDL.h and lib.SDL.*** in /usr/include/ but later i found out that these files are placed in /usr/local/include and /usr/local/lib. how can i specifically install libraries on /usr/include and /usr/lib

View 2 Replies View Related

Networking :: No /usr/include/usb.h Header File?

Dec 16, 2010

I was trying to install usb-modeswitch edora-14 (64 bitt saidCode:usb_modeswitch.c:56:17: fatal errr: usb.h: No such file or directoryWhen I tried to install libusb, it said that it is already installed and is the latest version. But, it still doesn't show usb.h in /usr/include directory.What shall I do to make usb-modeswitch?

View 4 Replies View Related

Debian Programming :: HTML5 - How To Include Another File

Jun 15, 2013

I am trying to re-write my local web pages in HTML5. My original pages used an include file so that I had a consistent set of links on the top of each page. I used - require("link_list.php");

But this does not seem to be possible in HTML5. I am guessing that there is a way to do this, searching the web suggests object or embed, but these create a new page within my original page, which is not what I want.

View 4 Replies View Related

Programming :: QT #include <QGLWidget> No Such File Or Directory

May 30, 2011

I have installed QT on Slackware 13.37 x64 and when I create gui project it works ok, but I need OpenGL.When I add #include <QGLWidget>I get error No such file or directory there is my env

Quote:

CPLUS_INCLUDE_PATH=/usr/lib/qt/include
MANPATH=/usr/local/man:/usr/man:/usr/lib/java/man:/usr/share/texmf/man
KDE_MULTIHEAD=false
HZ=100

[code].....

View 2 Replies View Related

General :: Symlink And Sudo Executable?

Jun 14, 2010

If I have the below sudoers entryusera ALL=(userb) NOPASSWD: /home/userc/bin/executable-fileusera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-fileWhen I log-on as usera and try running the below commands, it workssudo -u userb /home/userc/bin/executable-filebut NOT the one below.sudo -u userb /home/userc/bin/link-to-another-executable-fileSorry, user usera is not allowed to execute '/home/userc/bin/link-to-another-executable-file' as userb on hostname.

View 1 Replies View Related

General :: Why Can't Make Symlink Except As Root

Mar 13, 2010

In my MIDI music collection, I have a "best" folder with duplicate copies of only my favorite files. Recently I thought, why waste memory with duplicates--can't I just put symlinks in the "best" folder? So I tried to, in Konqueror. It would only let me make the symlinks from the Konqueror superuser account.

View 4 Replies View Related

General :: Do Symlink Or Hardlink At Start Up?

Jun 7, 2011

2.6.38-8-generic
Mint 11 64 bit

I'm trying to move a file from a directory to another one and create a symlink but seem to be doing something wrong. Have done "man ln" and looked up info in coreutils but I don't seem to be able to get it right. There are two files in ./home/jim/.config/banshee-1/ that I want to move to ./home/jim/Dropbox/banshee. I have created backups of both and created the new folder in Dropbox. see attached screen shots. I then run

Code: jim@saturn ~ $ sudo ln - ./home/jim/Dropbox/banshee/banshee.db ./home/jim/.config/banshee-1/banshee.db
ln: creating symbolic link `./home/jim/.config/banshee-1/banshee.db': No such file or directory and get the above error message. Now I know symlinks do not need to be complete at the time of creation, but I'm not sure if I have done this right or not and if I try and read and write banshee.db at the original location if it will do it properly and efficiently. Is this a case where I should do a hardlink instead and have both files. If I want to do this every time at start up, how do I automate the commands once I have them right?

View 5 Replies View Related

General :: Limit On File Size - Doesn't Allow User To Create File Which Are Greater Than 100Kb

Jun 13, 2011

I was just testing specifying limit on file size to a user and have added the following to /etc/security/limits.conf bob soft fsize 100 This basically should have said not to allow bob to create anyfile greater than 100Kb in size.

But the interesting thing is, if bob already has any file which is greater than 100Kb in size, it even doesn't allow to log him into the system both from console and SSH. Also nothing is logged in logs.. How do I configure it so that, bob can login to the system even though he has any file greater than 100Kb (but doesn't allow him to create file which are greater than 100Kb) ??

View 3 Replies View Related

General :: Vsftp Cannot Upload File / Error 553 Cannot Create The File

Jul 26, 2010

I am testing my ftp server configuration.Anonymous download works , however anonymous upload does not.I am getting the following error message from both Windows and Linux 5.4clients : 553 cannot create the file.And i am running Fedore 12.

View 3 Replies View Related

OpenSUSE :: Compiling - Can't Find A Header File In /usr/include/gtk-2.0/?

Mar 11, 2011

Compiling Amarok from git gives error "gdk-pixbuf/gdk-pixbuf.h: No such file or directory" it is installed in /usr/include/gtk-2.0/gdk.I just up'ed to openSuse 11.4 and KDE 4.6.1 - compiled fine last time I tried which was probably last weekend or so (March 2nd or third)Wondering if /usr/include/gtk-2.0/ is new in 11.4 because of the upcoming gtk3.0 and the problem is it's not some path and not being compiling proficient I'm a bit lost.full error

Code:
/home/smiley/MyTemp/amarok/src/core-impl/collections/ipodcollection/handler/IpodHandler.cpp:35:35: fatal error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory

[code]....

View 1 Replies View Related

Programming :: Unable To Open Include File 'sstream.h'

Jan 28, 2010

i got this error im using turbo c++ 3.0.

View 1 Replies View Related

General :: Shell - On (CentOS 5), Remembering When We've Followed A Symlink And Being About To 'cd?

Dec 10, 2010

I'm trying to figure out how to tell the shell (tcsh) to remember when I've gone into a symlinked folder, and allow 'cd' to navigate back out of the symlink rather than just navigate to the parent directory of the linked-to folder...

For example:

$ ls -al /jobs
tech -> /mnt/projects1/tech
temp -> /mnt/projects2/temp
$ cd /jobs/tech
$ cd ../temp
../temp: No such file or directory.
$ pwd
/mnt/projects1/tech

View 2 Replies View Related

General :: Symlink All Files But Copy Certain Extensions?

Jul 27, 2011

I'm wondering how I'd be able to symlink all the files in a dir structure and then also copy files of a certain extension in that dir. I'm basically symlinking all files within /foo/a,b,c to /bar/a,b,c and then copying over certain files with a certain extensions.

View 1 Replies View Related

Fedora :: Broken Symlink - Error "No Such File Or Directory"?

May 12, 2011

I m trying to do a make but get error 2 right away with

Code: $ make: *** /lib/modules/2.6.35.13-91.fc14.i686/build: No such file or directory. Stop. make: *** [all] Error 2 regardless

View 2 Replies View Related

General :: Create Device File For Image File?

Sep 8, 2010

Everything in Linux is a file, right? And everything can be represented by a file? Is there some way I could create a block device file that represents (i.e., provides an interface to) this image file? If so, then I could use fdisk on the device file to split it into partitions, format the partitions, and then mount them as directories. I could create a file system within a file system, which would be fun.

View 2 Replies View Related

Ubuntu Multimedia :: Rework An .avi To Include Hard Subs From A .srt File?

Jun 29, 2011

Is it possible to rework an .avi to include hard subs from a .srt file I would really like to do this with ffmpeg but it seems that -newsubtitle doesn't work for me.
This is the command line so far ffmpeg -i infile.avi -vtag xvid -b1550k -r 23.970 -newsubtitle infile.srt -acodec libmp3lame -ac 2 -ab 128k -ar 48000 outfile.avi

View 1 Replies View Related

General :: Rdiff-backup Keeps Backing Up A Symlink, Ignoring Files Under It

Dec 6, 2010

I've got a backup.list file that looks like this:

+ /ext/installs
+ /ext/media
- /ext
- /backup
- /dev
- /mnt
- /proc

/ext is a symlink to /mnt/vg1/vol1, under which are installs and media directories.

I'm running:

rdiff-backup --backup-mode --include-globbing-filelist backup.list / /backup

rdiff-backup keeps recreating a symlink: /backup/ext -> /mnt/vg1/vol1, which is kind of missing the point, because then it doesn't actually back up the files in /mnt/vg1/vol1/installs, etc.

View 1 Replies View Related

Ubuntu Servers :: Apache Include Hostname In Access.log And Error.log File Names?

Feb 8, 2010

I am sure this information is out there somewhere, but Googling apache access.log and hostname does not give you any good leads... so I hope someone here might be able to provide me with a quick answer...I am setting up a cluster of web servers, so I would like to name the access.log and error.log with the hostname of the individual servers to be able to distinguish one from another.

View 4 Replies View Related

Programming :: (.text+0x7): Undefined Reference - Compiling Program Include One Header File And 2 C

May 21, 2011

i am a new programer in c i have write a simple app and i have a problem with combiling my program include one header file and 2 c

fun.h
#include<stdio.h>
void f();
/******EOF*******/
fun.c
#include"fun.h"
void f(){
[Code].....

View 6 Replies View Related







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