![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| system calls | sangramdas | BSD | 1 | 05-08-2008 09:48 PM |
| System calls | joshighanshyam | High Level Programming | 1 | 03-19-2008 08:57 AM |
| System calls ? | TECHRAMESH | SUN Solaris | 1 | 05-16-2006 02:05 AM |
| System calls? | PlunderBunny | UNIX for Dummies Questions & Answers | 2 | 03-26-2006 10:12 PM |
| System calls for cp and mv | gaurava99 | UNIX for Dummies Questions & Answers | 2 | 04-25-2005 11:04 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Perl System command calls to variable
I am new to scripting in Perl so I have a dumb question.
I know I can call system commands using system("date"); But I am not able to: 1. set its output to a variable 2. run in quiet mode(no output to the screen) The examples i have Code:
#!/usr/bin/perl print `date +\%y\%m\%d.\%H\%M`; # OK x=`date +\%y\%m\%d.\%H\%M`; #ERROR print x; Can't modify constant item in scalar assignment |
| Bookmarks |
| Tags |
| system call |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|