Hi All,
I am new to UNIX. I will be thankful if some one helps me.
I have to write a shell script for one of the requirement.
I have files created from Jan 2006 to March 2008.
My requirement is to write a script in such a way that
1) To find and copy(not Moving) the files created in the... (2 Replies)
System: Ubuntu Intrepid Ibex
I'm running webcamd as a sort of "security" program, but I need a script that will archive my webcam.jpg files.
So, take the following file:
/home/slag/www/webcam.jpg
Rename it--preferably with a time stamp.
Place it in say:
/home/slag/www/history/
... (4 Replies)
HI ,
I have a list1 which consists of data that i have to search and a list2 which has the files that need to be searched .So basically i am using list1 on list2 to see if list1 data is present if found replace it .I have written the code using foreach loop for each list .This is taking the... (1 Reply)
Hello
Im new to this forums, I would like some help regarding a script that I need in order to copy some files. Heres the scenario:
I need to search several files which have a particular code inside, lets say "test" all of them on different directories. I need to copy all of them on a new... (4 Replies)
I am trying to copy files from one directory to another using shell script. Can anyone please troubleshoot the code.
thanks in advance...
#!C:\Shell\sh.exe
files_dir="C:\Documents and Settings\scripts\files"
backup_dir="C:\Documents and Settings\scripts\ztest"
echo cding to... (2 Replies)
Hi all, I'm looking for a script to poll a specified directory and copy new files to another location.
The script should only copy new files so, I based on mtime I guess?
Can anyone point me in the right direction of a script which could do this?
My scripting skills aren't too bad, but... (1 Reply)
Hi,
I am using solaris 10 bash shell.this might a small script but i am not much familiar with scripting.
My requirement here is script should prompt for users two opions like this
"please select either any one option makefile or make& build file".
if the user selects make file option... (2 Replies)
Our Apache log files are written to a location on the server that we as clients have no access. Don't ask.
Every month, I have to e-mail the administrator to have him manually copy our Apache log files to a directory in our file space. You can probably guess how efficient it is to do things this... (3 Replies)
I am trying to copy files with specific date and name to another folder. I am very new to shell scripting so i am finding it hard to do that. see the sample code i have written below.
srcdir="/media/ubuntu/CA52057F5205720D/Users/st4r8_000/Desktop/office work/26 nov"... (13 Replies)
Hi,
Could you please assist how to move the gz files which are older than the 90 days from one folder to another folder ,before that it need to check the file system named "nfs" if size is less than 90 or not. If size is above 90 then it shouldn't perform file move and exit the script throwing... (4 Replies)
Discussion started by: venkat918
4 Replies
LEARN ABOUT OSX
systemd-socket-activate
SYSTEMD-SOCKET-ACTIVATE(1) systemd-socket-activate SYSTEMD-SOCKET-ACTIVATE(1)NAME
systemd-socket-activate - Test socket activation of daemons
SYNOPSIS
systemd-socket-activate [OPTIONS...] daemon [OPTIONS...]
DESCRIPTION
systemd-socket-activate may be used to launch a socket-activated service program from the command line for testing purposes. It may also be
used to launch individual instances of the service program per connection.
The daemon to launch and its options should be specified after options intended for systemd-socket-activate.
If the --inetd option is given, the socket file descriptor will be used as the standard input and output of the launched process.
Otherwise, standard input and output will be inherited, and sockets will be passed through file descriptors 3 and higher. Sockets passed
through $LISTEN_FDS to systemd-socket-activate will be passed through to the daemon, in the original positions. Other sockets specified
with --listen= will use consecutive descriptors. By default, systemd-socket-activate listens on a stream socket, use --datagram and
--seqpacket to listen on datagram or sequential packet sockets instead (see below).
OPTIONS -l address, --listen=address
Listen on this address. Takes a string like "2000" or "127.0.0.1:2001".
-a, --accept
Launch an instance of the service program for each connection and pass the connection socket.
-d, --datagram
Listen on a datagram socket (SOCK_DGRAM), instead of a stream socket (SOCK_STREAM). May not be combined with --seqpacket.
--seqpacket
Listen on a sequential packet socket (SOCK_SEQPACKET), instead of a stream socket (SOCK_STREAM). May not be combined with --datagram.
--inetd
Use the inetd protocol for passing file descriptors, i.e. as standard input and standard output, instead of the new-style protocol for
passing file descriptors using $LISTEN_FDS (see above).
-E VAR[=VALUE], --setenv=VAR[=VALUE]
Add this variable to the environment of the launched process. If VAR is followed by "=", assume that it is a variable-value pair.
Otherwise, obtain the value from the environment of systemd-socket-activate itself.
--fdname=NAME[:NAME...]
Specify names for the file descriptors passed. This is equivalent to setting FileDescriptorName= in socket unit files, and enables use
of sd_listen_fds_with_names(3). Multiple entries may be specifies using separate options or by separating names with colons (":") in
one option. In case more names are given than descriptors, superfluous ones will be ignored. In case less names are given than
descriptors, the remaining file descriptors will be unnamed.
-h, --help
Print a short help text and exit.
--version
Print a short version string and exit.
ENVIRONMENT VARIABLES
$LISTEN_FDS, $LISTEN_PID, $LISTEN_FDNAMES
See sd_listen_fds(3).
$SYSTEMD_LOG_TARGET, $SYSTEMD_LOG_LEVEL, $SYSTEMD_LOG_COLOR, $SYSTEMD_LOG_LOCATION
Same as in systemd(1).
EXAMPLES
Example 1. Run an echo server on port 2000
$ systemd-socket-activate -l 2000 --inetd -a cat
Example 2. Run a socket-activated instance of systemd-journal-gatewayd(8)
$ systemd-socket-activate -l 19531 /lib/systemd/systemd-journal-gatewayd
SEE ALSO systemd(1), systemd.socket(5), systemd.service(5), sd_listen_fds(3), sd_listen_fds_with_names(3), cat(1)systemd 237SYSTEMD-SOCKET-ACTIVATE(1)