Solved

CGI - what is "cat"

Posted on 2009-07-15
3
315 Views
Last Modified: 2013-12-25
Hello,

I am using cgi web server. I am totaly new to this area.
I see that in scripts many times CAT word appears. What is it's meaning? Is it a variavle?

THANKS
cat << EOM

Open in new window

0
Comment
Question by:margarit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 250 total points
ID: 24866851
margarit,

The word cat is used as an abbrevaition for concatenate.  The result would be printed.  If there is more than one "input" then they are combined and that result is printed.

The line you have seems to start have  the start of a "here-doc" so it is hard to tell what the result would be.  If this doesn't seem to fit what you are getting or using then please provide more of a sample of the code and clarify what runs it (i.e. the language used).

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
LVL 84

Assisted Solution

by:ozo
ozo earned 250 total points
ID: 24866906
man cat
CAT(1)                  

NAME
     cat -- concatenate and print files

SYNOPSIS
     cat [-benstuv] [-] [file ...]

DESCRIPTION
     The cat utility reads files sequentially, writing them to the standard
     output.  The file operands are processed in command line order.  A single
     dash represents the standard input.

     The options are as follows:
0
 

Author Closing Comment

by:margarit
ID: 31604126
Thanks!!!
0

Featured Post

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to dynamically set the form action using jQuery.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question