Open command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Open command
# 1  
Old 09-11-2013
Open command

Hi ,

what does this below commands do in perl ?


Code:
 
 open(fd, ">>$received_notification_file"); 
  print fd "$feed_name,,,$feed_expected_ind,$received_ind,$copied_ind,$market_pricing_dt\n";
  close(fd);


also this
Code:
 
 
$tmp_file_Ctrl = "$Program.tempfileC_$feed_name" ;
  open(ftmp, ">$ENV{FIDE_IFEEDS_WORK_DIR}/$tmp_file_Ctrl") ;
  print ftmp "$feed_path\t$ENV{FIDE_TMP}\t$feed_name\tARRDAT\tno_compress\n";
  close(ftmp);



Code:
 
 
open(fd, ">$mailfile");
 print fd "Feed_name: $feed\nCycle_date: $date\Arrival time: $timestamp\nEntry added in feed_retrieval with status_cd = 'S'";
 close(fd);


whats does this actually do in perl ?
# 2  
Old 09-11-2013
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

Command to check if open proxy works

Hello, please what is the least server resources intensive linux command to veriffy an open proxy works. I mean one should probably send and receive any data via this proxy? and if data found it returns true Assuming proxy is 1.2.3.4:1080 I used this: curl -x $proxy $url... (1 Reply)
Discussion started by: postcd
1 Replies

2. Shell Programming and Scripting

Open vi with a command issue

Solaris 5.8, ksh I need to open everyone's favorite editor, vi of course, with a command that will place me on a search string at the time of invocation: Given this data file: user1 pts/1 Aug 29 13:22 (10.12.214.101) user2 pts/2 Aug 29 09:56 (10.12.212.132) user3 pts/3 ... (4 Replies)
Discussion started by: gary_w
4 Replies

3. Shell Programming and Scripting

Use Unix shell script to open Windows command prompt (cmd)

Hello, I work on Windows and I use Putty to access a remote UNIX server. I am trying to build a shell script that will have as main task to open the Windows command prompt (cmd) and run some Windows commands thereafter. The commands are actually file transfer commands that will download a file... (14 Replies)
Discussion started by: rookie2785
14 Replies

4. Shell Programming and Scripting

need to add user from command prompt not to open actual file

Here is my script which gives the below output when I run.First it will display the list of all groups and then ask for enter the group name and after it will ask for contribuotors or users then I will add contribuotirs or users and it will show the list of all users associated with that group but... (3 Replies)
Discussion started by: rohit22hamirpur
3 Replies

5. Shell Programming and Scripting

How 2 run same command across all open terminals

Hi folks. This has been bothering me for a while. Among the 8 virtual desktops I'm using, I have 18 terminals open right now. I change some of my user configuration (e.g. put a new alias into ~/.bashrc); but in order to use this new added alias, I have to source the config file: .... (4 Replies)
Discussion started by: mirni
4 Replies

6. Shell Programming and Scripting

Open and System command in SFTP

Hi Unix team, Is there any alternative option and command which one can use in ftp for sftp usage. open, system command --> alternative for sftp usage -n option --> alternative for sftp usage sftp supports only binary transmission. how one can achieve ascii mode file... (8 Replies)
Discussion started by: mayleeshwaran
8 Replies

7. Shell Programming and Scripting

How run simple command in xterm, and leave open?

I have written a simple script to show battery life remaining. I would like to be able to quickly view it with a predefined keybinding or launcher. xterm -e scriptname should do the trick but the xterm closes when the script finishes, not giving me chance to read the output. How can I keep... (3 Replies)
Discussion started by: spoovy
3 Replies

8. Shell Programming and Scripting

piping to 'open' command!

Hello! One command generates a file path, which I then want to open in finder. The slow way is this with C&P: $bundle show jquery-validator /Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/jquery-validator-0.3.0 $open /Users/peter/.rvm/gems/ruby-1.9.2-p136/gems/jquery-validator-0.3.0 I... (4 Replies)
Discussion started by: pehrlich
4 Replies

9. Red Hat

cannot set user id: Resource temporarily unavailable (not open file/open process related)

First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting. First, this is what's running: This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies
Login or Register to Ask a Question