Sponsored Content
Top Forums Shell Programming and Scripting Peer Review File/Folder Script Post 302684361 by rwhite35 on Thursday 9th of August 2012 01:14:18 PM
Old 08-09-2012
In reply to Chubler_XL, I'm running Mac XServer 10.6 on a box and CentOS on a Virtual Server. Thanks.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Review the Shell Script

Hi, I want to copy all the log file except current date log from one server to another server. Log File will be like this LOGNIG_08_11_2008*.log For this cd /test/log date -d '1 day ago' "+%d_%m_%Y" -->This command gives previous day scp LOGSNIG_date -d '1 day ago' "+%d_%m_%Y"... (2 Replies)
Discussion started by: srinivasvandana
2 Replies

2. Shell Programming and Scripting

Please, review script.

Hi guys, I 've been brewing this shellscript, but I can't test it until next tuesday. In the meantime I am too curious wether it will work or not, so I'd like to hear your comments. Background: I want to watch the user quota for mailboxes in various email-domains on a IMAP-server. I have... (1 Reply)
Discussion started by: algernonz
1 Replies

3. Solaris

peer-to-peer connection on solaris and windows

hi everyone. As a solaris/unix beginner, I am trying a peer-to-peer connection with my Sun and Windows. Here is my setup: -Windows XP -Sun System (Netra T1) which is connected to the console of the WinXP machine. -Windows XP has wireless connection which enables me to access internet ... (3 Replies)
Discussion started by: graboid888
3 Replies

4. Shell Programming and Scripting

a shell script for review.

I have written a bit of shell that lets our company check all our SSL certs. the aim is to have a list of servers and run this check from cron once a week. Our managers have decided that we will not run BASH, so it has been written in /bin/sh and only needs openssl, no perl, no bash, no extra... (8 Replies)
Discussion started by: robsonde
8 Replies

5. Shell Programming and Scripting

Please review script for search in all files

I have written a little script to scan users home directories for certain commands located inside a file. The script is setup to include a small help section and allows for passing a username argument to override scanning of all users home directories. A lot of searching and trial and error has... (7 Replies)
Discussion started by: bkeep
7 Replies

6. IP Networking

Firewall stopping Peer to Peer File sharing

I am looking for advice on a router. I am new to Linux and am trying to use Limewire and Ktorent and can make no connection. Limewire indicates I have a firewall. I have a Linksys router WRK54G and my guess is that is the problem. I have spent hours upon hours trying to get it to work using info... (0 Replies)
Discussion started by: Paul K
0 Replies

7. IP Networking

Problem with Static route through peer to peer connection

Hi, I am trying to add a static route in one of 3 server (S3) so that I can access the main application server (S1). But problem is, the server (S3) where I am trying to add static route is connected with another server (S2) which is in same private network of application server (S1). I have... (9 Replies)
Discussion started by: ImranBD
9 Replies

8. Shell Programming and Scripting

File to Folder script

I am trying to write a linux shell script that will take every file in a folder /home/user/desktop/fileme and place it in a folder with the same name as the folder before /home/user/desktop/fileme/stuff.txt /home/user/desktop/fileme/other.avi /home/user/desktop/fileme/last.jpg after... (2 Replies)
Discussion started by: FustFust
2 Replies

9. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
SW_VERS(1)						    BSD General Commands Manual 						SW_VERS(1)

NAME
sw_vers -- print Mac OS X operating system version information SYNOPSIS
sw_vers sw_vers -productName sw_vers -productVersion sw_vers -buildVersion DESCRIPTION
sw_vers prints version information about the Mac OS X or Mac OS X Server operating system running on the local machine. When executed with no options sw_vers prints a short list of version properties: % sw_vers ProductName: Mac OS X ProductVersion: 10.3 BuildVersion: 7A100 The ProductName property provides the name of the operating system release (typically either "Mac OS X" or "Mac OS X Server"). The ProductVersion property defines the version of the operating system release (for example, "10.2.4" or "10.3"). The BuildVersion property provides the specific revision of the operating system as generated by the Mac OS X build system. OPTIONS
The output of sw_vers can be refined by the following options. -productName Print just the value of the ProductName property. -productVersion Print just the value of the ProductVersion property. -buildVersion Print just the value of the BuildVersion property. EXAMPLES
% sw_vers -productName Mac OS X % sw_vers -productVersion 10.3 % sw_vers -buildVersion 7A100 FILES
/System/Library/CoreServices/SystemVersion.plist /System/Library/CoreServices/ServerVersion.plist Mac OS X March 10, 2003 Mac OS X
All times are GMT -4. The time now is 01:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy