12-29-2011
is it contain entire feature of unix
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Okee problems...!!
What is happening: Unix server with some programms, workstations are windows 2000, the workstations work good but when you start a programm on the Unix server the CPU of the workstations go to 100% usage resulting that the system gets very slow. The programm well its running so... (2 Replies)
Discussion started by: zerocool
2 Replies
2. UNIX for Advanced & Expert Users
Can anybody help me in finding out a solution for the problem below?
When we write .unix or .sh files in windows OS and port them to Unix platforms there is a character ^M inserted at the end of each line of the script file.
During ftp porting I set the transfer mode as ASCII for the script... (7 Replies)
Discussion started by: tamilselvi
7 Replies
3. UNIX for Advanced & Expert Users
hi
i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies
4. Filesystems, Disks and Memory
Hello Moto
I hope someone can help
We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers..
a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies
5. UNIX for Dummies Questions & Answers
My situation is that we have production unix scripts that ftp files over to a windows server. I'm not sure if its a 2000 or 2003 server as I dont work on server, more on the unix side. It turns out that they are changing servers on the network. So they are migrating our data over from say Server 1... (1 Reply)
Discussion started by: NycUnxer
1 Replies
6. AIX
Hi Friends,
I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net'
USER='myid_onlocal'
PASSWD='mypwd_onlocal'
FILE='file.txt' ##This is a file on server(AIX)
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies
7. Shell Programming and Scripting
Hi Experts,
I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers.
Could some body provide the inputs for this.
and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies
8. Shell Programming and Scripting
Can anybody please help me on how to code for the below requirement:
I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies
9. Shell Programming and Scripting
hi guys,
i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not
and again i have to reverse sftp the files from unix to windows server.....
regards,
Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies
LEARN ABOUT OSX
feature5.12
feature(3pm) Perl Programmers Reference Guide feature(3pm)
NAME
feature - Perl pragma to enable new features
SYNOPSIS
use feature qw(switch say);
given ($foo) {
when(1) { say "$foo == 1" }
when ([2,3]) { say "$foo == 2 || $foo == 3" }
when (/^a[bc]d$/) { say "$foo eq 'abd' || $foo eq 'acd'" }
when ($_ > 100) { say "$foo > 100" }
default { say "None of the above" }
}
use feature ':5.10'; # loads all features available in perl 5.10
DESCRIPTION
It is usually impossible to add new syntax to Perl without breaking some existing programs. This pragma provides a way to minimize that
risk. New syntactic constructs, or new semantic meanings to older constructs, can be enabled by "use feature 'foo'", and will be parsed
only when the appropriate feature pragma is in scope.
Lexical effect
Like other pragmas ("use strict", for example), features have a lexical effect. "use feature qw(foo)" will only make the feature "foo"
available from that point to the end of the enclosing block.
{
use feature 'say';
say "say is available here";
}
print "But not here.
";
"no feature"
Features can also be turned off by using "no feature "foo"". This too has lexical effect.
use feature 'say';
say "say is available here";
{
no feature 'say';
print "But not here.
";
}
say "Yet it is here.";
"no feature" with no features specified will turn off all features.
The 'switch' feature
"use feature 'switch'" tells the compiler to enable the Perl 6 given/when construct.
See "Switch statements" in perlsyn for details.
The 'say' feature
"use feature 'say'" tells the compiler to enable the Perl 6 "say" function.
See "say" in perlfunc for details.
the 'state' feature
"use feature 'state'" tells the compiler to enable "state" variables.
See "Persistent Private Variables" in perlsub for details.
the 'unicode_strings' feature
"use feature 'unicode_strings'" tells the compiler to treat all strings outside of "use locale" and "use bytes" as Unicode. It is available
starting with Perl 5.11.3.
See "The "Unicode Bug"" in perlunicode for details.
FEATURE BUNDLES
It's possible to load a whole slew of features in one go, using a feature bundle. The name of a feature bundle is prefixed with a colon, to
distinguish it from an actual feature. At present, the only feature bundle is "use feature ":5.10"" which is equivalent to "use feature
qw(switch say state)".
Specifying sub-versions such as the 0 in 5.10.0 in feature bundles has no effect: feature bundles are guaranteed to be the same for all
sub-versions.
IMPLICIT LOADING
There are two ways to load the "feature" pragma implicitly :
o By using the "-E" switch on the command-line instead of "-e". It enables all available features in the main compilation unit (that is,
the one-liner.)
o By requiring explicitly a minimal Perl version number for your program, with the "use VERSION" construct, and when the version is
higher than or equal to 5.10.0. That is,
use 5.10.0;
will do an implicit
use feature ':5.10';
and so on. Note how the trailing sub-version is automatically stripped from the version.
But to avoid portability warnings (see "use" in perlfunc), you may prefer:
use 5.010;
with the same effect.
perl v5.12.5 2012-11-03 feature(3pm)