Yes, I've tryed it and works. Tough, in the example, the script only takes the file name and echoes it. From that, doing the rest is easy.... For instance:
Hello,
Which command in unix can tell whether a file is being used/written by another process.
e.g. If one process is copying a very big file in some directory and there is another cronjob process which checks for a new file and in this directory and process the file. I want to check, if the... (4 Replies)
Hi,
I have a directory that is used to store files generated by another application. Each file is huge and can take some time to produce.
I am writing a shell script to check the names and dates of the files and do some functions on the ones that are not being written out.
My question is, if I... (3 Replies)
Hello All
I am attempting to write a shell script (bourne shell script) which will copy a tar'd and compressed file from a directory to a staging area but will not know whether the file is still open for write since files are being ftp's to my site at random times during the day.
Once I am... (14 Replies)
I'm using growisofs to write DVD, e.g.
$ growisofs -Z /dev/dvd -V "Personal Data, `date +"%b, %d %Y"`" -R -J /mnt/d/*
How can I test whether data was written correctly? md5sum or so? (0 Replies)
Hi experts,
I have two question about expect script
questions 1
send "tar -xjvf a.tar\r"
send "ifconfig\r"
I want to know if it just run "ifconfig after "tar -xjvf a.tar complete. or the two cmd run at the same time
question 2
after I use the expect to ssh to the... (1 Reply)
I'm wondering how programmers develop new Web Development languages because I want to learn how everything begins from the start. Let's say I'm planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way Web Development languages first appear ? I'm asking... (1 Reply)
Just learned c language ,but I don't know where to start to write some applications under Linux ,I really appreciate it if anybody can help me find some books or sites on it. (2 Replies)
hi all
syslog is not getting written.
i am getting following two logs snmpd.log & authlog logs.
please tell what are two logs snmpd.log & authlog logs.
why syslog is not written. (16 Replies)
Subject: Debugging a program written in two languages
Platform: Linux (Kubuntu)
I am trying to debug a C application with bindings to some simple functions written in Ada using the GNAT Programming Studio IDE (GPS). The main entry point is in C. The debugger is gdb.
I managed to compile... (0 Replies)
Discussion started by: NiGHTS
0 Replies
LEARN ABOUT DEBIAN
se_apt-get
SE_DPKG(8) NSA SE_DPKG(8)NAME
se_dpkg,se_apt-get,se_aptitude,se_dpkg-reconfigure,se_dselect,se_synaptic - run a Debian package system programs in the proper security
context
SYNOPSIS
se_dpkg [ <<dpkg ARGS>> ... ]
se_apt-get [ <<apt-get ARGS>> ... ]
se_aptitude [ <<aptitude ARGS>> ... ]
se_dpkg-reconfigure [ <<dpkg-reconfigure ARGS>> ... ]
se_dselect [ <<dselect ARGS>> ... ]
se_synaptic [ <<synaptic ARGS>> ... ]
DESCRIPTION
These programs are all symbolic links to a simple wrapper script that uses run_init to run actually run the corresponding program after
setting up the proper context. run_init acquires a new Psuedo terminal, forks a child process that binds to the pseudo terminal, forks the
program (dpkg,apt-get,aptitude,synaptic,dselect,ordpkg-reconfigure) that the user actually needs to run, and then sits around and connects
the physical terminal it was invoked upon with the psuedo terminal, passing keyboard into to the child process, and passing the output of
the child process to the physical terminal.
It sets up the psuedo terminal properly based on the physical terminal attributes, and then sets the user's terminal to RAW mode, taking
care to reset it on exit.
AUTHOR
This manual page was written by Manoj Srivastava <srivasta@debian.org>, for the Debian GNU/Linux system.
Security Enhanced Linux January 2008 SE_DPKG(8)