General :: Internally Create A File?

Jan 16, 2011

I am using NetBSD-5.1. 1. I wanted to know what happens internally when we create a file in linux. ?The header file STDIO.H present in "src/include/stdio.h" contains a "FILE" structure with various members like _p, _cookie, etc. 2. wanted to know how does internally memory gets allocated for them.

View 1 Replies


ADVERTISEMENT

Programming :: What Happens Internally When Create A File

Jan 17, 2011

I am using NetBSD-5.1.1. I wanted to know what happens internally when we create a file in linux. ( In general )?The header file STDIO.H present in "src/include/stdio.h" contains a "FILE" structure with various members like _p, _cookie, etc.2. I wanted to know how does internally memory gets allocated for them.?

View 1 Replies View Related

General :: Kills A Process Internally Or From Where It Picks File To Continue Its Process?

Jan 8, 2010

one tell me the internal working of kill command. that is how it kills a process internally or from where it picks file to continue its process.

View 3 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

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

Networking :: Addressing Internally And Externally With A /30?

Jan 27, 2011

It's more just straight networking rather than Linux related - possibly a rather large gap in my knowledge.Been asked to set up a Linux firewall / router for a friend, and he wants an external address on his PC and his firewall. He's got a /30... ISP seem to think this is normal. My understanding was different router interfaces should be in different subnets when it comes to addressing. eg:

WAN 1.1.1.1LAN 192.168.1.1/24 (then PC 192.168.1.2)This is how I'd set up an enterprise router, and from memory how I had to regurgitate networking for my Cisco exams. But they would have been large devices within a BGP environment, how does this compare to home use? Can you have interfaces on the same router within in the same subnet? I'm looking for the real world answer - not my CCNA answer or the config addressing scheme I just blindly followed...Is this right or can different interfaces be in the same subnet?If they can be in different subnets How would you do that with an eternal 1.1.1.1/30? egWAN 1.1.1.1LAN (what IP?) then PC 1.1.1.2Would you actually just set the router up as a /29 and then use the additional IP addresses for the LAN NIC on the router? (yes I'm aware you couldn't route to where it had actually been allocated)

Then with that how do I route the 1.1.1.1/30? Which interface do I point it at? Even with a /29 I'd still have a routing issue right?Or are the ISP expecting you to do something with NAT / port forwarding. (and yes I could do this to get it working - but I want to understand it better) I'm asking the question here, because rather than just wanting a magic file to get things working, I'd actually rather understand the principles rather than just press a button and have it work.

View 7 Replies View Related

General :: Can't Seem To Create A Dot File In /tmp

Mar 2, 2011

why I cant seem to create a dot file (a file that starts with a dot) in my /tmp folder even with root priviledges. I installed F-Prot for linux & when I try to do a scan it complains it "can't stat a file" it seems to want to create & quits. So I tried creating it my self but it wont create a file that starts with a dot it seems. I also tried "chmod go+rx /tmp/*"

This is the error

root@JASONS-BRAAIN:/opt/f-prot# /opt/f-prot/fpscan -l
F-PROT Antivirus version 6.3.3.5015 (built: 2009-12-23T13-43-55)
FRISK Software International (C) Copyright 1989-2009
Engine version: 4.5.1.85
Arguments: -l

[Code].....

View 3 Replies View Related

Fedora Networking :: Can't Reach Computer Internally With Domain Name

Apr 8, 2010

I am not sure if this is a problem with my router or a problem with the fedora 12 server i am using.

- internal here means within my home network, external means from outside it.

I can access my server and webpage:

internally using http://192.168.0.192
externally using http://MYDNS___EXAMPLE.com

but I cannot access the server internally using http://MYDNS___EXAMPLE.com

This is a pain in the butt because I have all of my client software setup with an internal and external access point (ssh, proFTPd, http, MS Access database connected to MySql, etc.)

View 5 Replies View Related

Hardware :: Replace Power Supply Or Mount Internally?

Dec 22, 2009

I have a 500GB WesternDigital Elements external harddrive and recently I plugged it into my computer and noticed the green light on the power adapter didn't light up anymore. I'm assuming that the power adapter failed - is this a fairly safe assumption? I know it COULD be something else, but does this at least make sense to move forward?Coincidentally, I've been researching new externals to order a 1.5TB because the 500GB is full.

I'm contemplating two options:
1.) Replace the power supply for ~$40
2.) Take apart the external and mount it internally

If it is in fact the power supply it might be the best option to just replace the thing and have 2 externals for backing up data on. But if it turns out to not be the power supply I'm out $40.I'm not sure how taking apart the external and install the hard drive in a desktop computer would be. Is the harddrive a standard drive? Does it have all the same power cords a normal computer would? If so, I could just install it into my brother's desktop and retreive the data that way (and he'll have an extra 500GB hdd).

View 2 Replies View Related

Software :: Can't See Internally Hosted Website When Inside The Network

Feb 9, 2011

I am creating podcasts that I like to download to my android phone. I host the podcasts on my home webserver and use dyndns for the website when outside the network. However, when I type in my dyndns website from inside my network, it will not work.

I realize i can use the ip address to get to the site, but since I use beyondpod for my podcasts, it's all saved in settings. So what i'd like to be able to do is download the podcasts to my phone from either inside or outside the network.

View 1 Replies View Related

General :: How To Using Redirection To Create A File

May 15, 2011

I have a linux script that generates a string and prints it to the console. I want this string to be the name of a file and open it for editing in vi. How can this be done?

View 3 Replies View Related

General :: Create A LiveDC From An ISO File?

Oct 4, 2010

How do I create a LiveCD from an ISO file?

View 2 Replies View Related

General :: Create .so File On Fedora 7?

Mar 26, 2010

I am working on JNI(Java Native Interface) on fedora 7 where i need to create a .so file of .c.(For example Hello.c to Hello.so). But i am not getting options to be used with the "cc" command. What option or the command.

View 6 Replies View Related

General :: Using Tar To Create Bzip File?

May 19, 2011

i'm trying to use tar to create a zip file but everytime I try using the command it just dumps out to the screen... I know i'm missing something simple but darned if I can figure out what it is. The command i'm using:tar -cpvz archive.bz2 /directory_name/*

View 5 Replies View Related

Networking :: Bonded Ethernet Interface Can Ping Internally But Not Externally

Oct 14, 2009

So I keep reading that bonding ethernet devices is supposed to be easy. I have followed several tutorials and tried a few things on my own, and I can't seem to get it right. I currently have a setup that allows me to ping internally on my network, but when I try to ping externally I get the error:
connect: Network is unreachable

Before I bonded the interface my connection worked fine. Here are my config files. I am running centos 5.3 on a virtual machine.
/etc/sysconfig/network-scripts/ifcfg-bond0

Code:
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=192.168.1.0
NETMASK=255.255.255.0
IPADDR=192.168.1.211
USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth1

Code:
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:88:59:47
MASTER=bond0
SLAVE=yes
USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth0

Code:
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:0c:29:88:59:3d
ONBOOT=yes
/etc/modprobe.conf

Code:
alias eth0 pcnet32
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptspi
alias scsi_hostadapter2 ata_piix
alias eth1 pcnet32

alias bond0 bonding
options bond0 mode=0 miimon=100
output of cat /proc/

Code:
Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:88:59:3d

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:88:59:47

View 4 Replies View Related

Server :: Sendmail For Inbound Mail And Redirecting Them Internally To Other Port?

Mar 22, 2011

I have configured a sendmail MTA for incoming mails in a network and by using IPtables i have redirected the traffic internally to other port where one more SMTP by a application is running.Iptables rule:

iptables -A INPUT -i eth0 -p tcp --dport 25 -j ACCEPT
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 25 -j REDIRECT --to-port 25000

My sendmail config is as below.

Sendmail.mc
define(`SMART_HOST', `relay:host.subdomain.mydomain.com')dnl
dnl # define(`RELAY_MAILER',`esmtp')dnl

[code]...

View 2 Replies View Related

Software :: Cronjob Schedule To Run Php Script On Lighttpd Server Internally?

Mar 29, 2011

I know that you can access and run any script of the web by wget:

Code:

wget mydomain.com/page.php

But this is literally accessing it externally through the web, i think that it is safer and faster to access the script internally. I am using lighttpd to host my php pages, and is there a way to do that? I have had some hosting experiences, the cronjobs on the hosts let u input:

Code:

* * * * * php /public_html/path/page.php

View 2 Replies View Related

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 View Related

General :: Create File With 751 Permissions At Creation

Apr 5, 2011

I keep creating practice perl scripts in a linux directory using vi <filename> and need to chmod 751 <filename> before I can run it as I wish to. I'm sure there is a simple way to default my permissions or config them at creation, but I'm not familiar with it ayuda me por favor.

View 2 Replies View Related

General :: Create Folder Name From The Text File?

Jun 23, 2010

1. I need guide on how to create a folder name from the text file with .txt format.

2. First, I call the function of reading the directory.

3. Then, I dont know how to do.

4. Finally, I close the directory

This is my source code in perl

## read text.txt file ##
open F, "from/$directory/text.txt";
read F, $buf, 9999;
close F;[/size]

This source code is used to print the folder with date format like "ddmm" d stands for day and m stands for month

if ($command =~ s/-O "(.*)"/-O "$websites/$month/$file"/)

Instead, I want to have the name from text.txt to be folder name

View 4 Replies View Related

General :: Create A Config File For Apache

Mar 31, 2011

Create a config file for Apache and this what I need to put and modify to meets my settings

NameVirtualHost *:9091
<VirtualHost *:9091>
DocumentRoot /var/www/trac/my_project
ServerName my_server_name

[Code].....

Do I simply add this within the /etc/httpd/conf/httpd.conf

if not how would I go about doing this

View 3 Replies View Related

General :: Create Empty Or Blank Iso File?

Nov 23, 2010

I having been searching for a way to create an empty or blank iso file, so that I can mount it, and have a backup application think it's a blank CD. I am tired of wasting CD's by having the application write a recovery CD, just for me to turn around and export it to an iso image to be stored in a online archive, and then throw away the physical CD.

View 5 Replies View Related

General :: Create A Crontab That Renames A File?

Oct 8, 2010

I've tried to create a crontab that renames a fil extension every minute. This is what I've tried:*/1 * * * * / rename /home/bodil/Avräkningsfiler/'s/.txt/dat/' *.txtBut it doesn't seem to work.I've also tried to create a .sh file in the catalog itself with the command executing directly in the catalog but even though running the command by typing it in, it doesn't run automatically by cron

View 10 Replies View Related

General :: Create Directories From A File List?

Jun 30, 2011

I am trying to write a script to pick the directory name from a list of file. Here is a detailed picture.Have a file name LIST which contains the follwing for example/apps/oracle/product/test1/apps/oracle/product/test2/apps/oracle/product/test3I need a script that reads these line from LIST and creates foldersin /apps/oracle/product/test1/backup/date/test1 after reading the first line
/backup/date/test2 after readin the second line/backup/date/test3 and so on.

View 15 Replies View Related

General :: Create A Png Or Jpeg File Programmatically?

Oct 3, 2010

Given a matrix with 0,1 entries, how can I create a graphic in linux such that we have a black square or pixel if the entry is one and white otherwise?

For example, if the matrix is:

0001000
0011100
0111110
0000000

then I want a graphic that looks like:

[code]....

I will be working with many large matrices, e.g. 1000x1000, or 5000x1000 so I need to do this automatically.

View 6 Replies View Related

General :: How To Create A JFFS File System

Apr 13, 2010

I am a newbie at Linux. I have installed Redhat Enterprise Linux desktop 5.3 on my machine. I do not know how to create a JFFS file system on Linux

View 1 Replies View Related

General :: Create A MAKE File For Compiling?

Feb 24, 2011

I've gone through some online tutorial on how to create a MAKE file and actually I don't have a complete understanding of it specifically, linking the particular compiling program to a library and also creating a share/dynamic library.

View 4 Replies View Related

General :: Create A Password Protected Tar File?

Jun 8, 2010

how to create password protected tar file ?

View 3 Replies View Related

General :: How To Resize (or Create A Blank) .img File

May 9, 2011

I need to know to to make a smaller .img file. I want to put ubuntu on my android phone (androlinux.com), but the ubuntu.zip file was to big to fit on my sd card. The .img file is too large, so I want to make a slightly smaller .img file to fit on the sd card.

View 2 Replies View Related







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