Posts

user data running not well using ubuntu ami in aws Autoscaling

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I m using ubuntu ami in auto scaling for my webserver. In this case we are using userdata for ubuntu ami in launch configuration. (userdata have some script file. This script have some commands and access to s3 bucket too)..My question is ...userdata script file is not working well (But working.not well is access s3 bucket)when automatically scale up the instance through this ami with userdata.... But this script file is working well when manually run on instance....(working well when manually run whereas working not well through userdata)...please guide me ubuntu share | improve this question asked 1 hour ago Lakshminarayanan S 1 New contributor Lakshminarayanan S is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. add a comment  |  up vote 0 down vote favorite I m u...

Sam Watson (activist)

Image
Sam Watson Sam Watson, 2007 Born ( 1952-11-16 ) 16 November 1952 (age 65) Queensland, Australia Occupation Writer, filmmaker, political activist Political party Socialist Alliance Children Samuel Wagan Watson, Nicole Watson Samuel William "Sam" Watson (born 16 November 1952) is an Aboriginal Australian activist and a socialist politician. Through work at the Brisbane Aboriginal Legal Service in the early nineties, Watson was involved in implementing the findings of the Royal Commission into Aboriginal Deaths in Custody. In December 2009, Watson was appointed a deputy director at the Aboriginal and Torres Strait Islander Studies Unit at the University of Queensland and taught two courses in Black Australian Literature. [1] He is also a writer and a filmmaker. He has received honours for his 1990 novel The Kadaitcha Sung . Contents 1 Life 2 Career 3 Works 4 Further reading 5 References 6 External links Life Watson is the grandson of Sam Watson who was of the Birri Gu...

How to compare two files and if found equal ask the user to delete duplicate file by using shell script?

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I am learning linux and was given this problem as my homework but i can't solve this that how we can compare two files content in shell mode. (Here, we can assume that both files having text content like this for eg. $cat > f1 this is file 1) $ cat duplicate_file.sh echo "Enter file 1:" read file1 echo "Enter file 2:" read file2 cmp $file1 $file2 > newfile x=` wc newfile | cut -d" " -f2 ` if [` $x -eq 0 `] then rm -i $file2 fi I made this program but this ain't working!! So, Any suggestions?? shell-script files share | improve this question asked 1 hour ago Hariom kushwaha 1 New contributor Hariom kushwaha is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. add a comment  |  up vote 0 down vote favorite I am learning linux and was gi...