Unix Files
Unix File Structure: File: The file is a container for storing information. As a first approximation, we can treat it simply as a sequence of characters. If you name a file foo and write three characters a, b and c…
Unix File Structure: File: The file is a container for storing information. As a first approximation, we can treat it simply as a sequence of characters. If you name a file foo and write three characters a, b and c…
Introduction: Why shell programming? A working knowledge of shell scripting is essential to everyone wishing to become reasonably adept at system administration, even if they do not anticipate ever having to actually write a script. When a Linux machine…
Text processing utilities: Cat: The cat command reads one or more files and prints them to standard output. The operator > can be used to combine multiple files into one. The operator >> can be used to append to an…
Unix PROGRAMMING Introduction to Unix: Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy, and Joe Ossanna. The Unix operating system was first developed in assembly language, but by 1973 had…
<html> <head> <title> My Frame Factory </title> </head> <body> <iframe src=”http://www.w3schools.com” name=”f1″ width=”450px” height=”450px”/></iframe> <iframe src=”http://www.wikipedia.com” name=”f2″ width=”450px” height=”450px”/></iframe> <iframe src=”http://www.google.com” name=”f3″ width=”450px” height=”450px”/></iframe> <iframe src=”http://www.yahoo.com” name=”f4″ width=”450px” height=”450px”/></iframe> </body></html>
package mailpack; import java.io.IOException;import java.util.Properties; import javax.mail.Message;import javax.mail.MessagingException;import javax.mail.NoSuchProviderException;import javax.mail.PasswordAuthentication;import javax.mail.Session;import javax.mail.Transport;import javax.mail.internet.InternetAddress;import javax.mail.internet.MimeBodyPart;import javax.mail.internet.MimeMessage;import javax.mail.internet.MimeMultipart;import javax.naming.Context;import javax.naming.InitialContext;import javax.naming.NamingException;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse; public class send extends HttpServlet { private static final long serialVersionUID = 1L; public send() { //…
:: preparing date and time for /f “tokens=2 delims==” %%a in (‘wmic OS Get localdatetime /value’) do set “dt=%%a” set “YYYY=%dt:~0,4%” & set “MM=%dt:~4,2%” & set “DD=%dt:~6,2%” set “HH=%dt:~8,2%” & set “Min=%dt:~10,2%” & set “Sec=%dt:~12,2%” set…
Commands: powershell$EmailFrom = “sendermailID@gmail.com”$EmailTo = “receivermailID1@gmail.com,receivermailID2@gmail.com”$Subject = “The subject of your email”$Body = “This is just a test mail to verify the working of CMD”$SMTPServer = “smtp.gmail.com”$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)$SMTPClient.EnableSsl = $true$SMTPClient.Credentials = New-Object System.Net.NetworkCredential(“sendermailID@gmail.com”, “senderPassword”)$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)pause
Synatx: ec2-import-instance disk_image_filename -f file_format -t instance_type -a architecture -b s3_bucket_name -o owner -w secret_key -p platform_name ec2-import-instance disk_image_filename -f file_format -t instance_type -a architecture -b s3_bucket_name -o owner -w secret_key -p platform_name -O your_access_key -W your_secret_key Example 1:(Windows) C:>…
The correct fix is to update your SSL certificates. sudo yum upgrade ca-certificates –disablerepo=epel You need to disable the epel repo so that this command will succeed. After you update your certificates you can use yum normally as EPEL will…