Skip to content

Facing issues writing code with perl expect

I want to run a command which will connect to a remote host and perform some actions, while I try to run the command below actions are required. also it asks for a password as below I have written a perl script as below: I needed a code which can answer the questions asked on console i.e. as below and

Automation of networks using ansible on openstack

I’ve written an ansible script, to create a network based on a condition. So that, even if I run ansible script again it will not create duplicate entries in my openstack environment. task: I don’t have either of the twonetworks in my project. My intention was, both the statments display null outp…

Attach to a GNU screen and then execute commands

I have seen some similar questions asked but the solutions don’t seem to work in my case. I am trying to SSH into a specific screen instance on a Node machine and then execute some commands My current process is this: On the remote machine I create a screen instance: screen -dmS “my_screen” …

Security concerns around KSM

When using KSM (Kernel Same-page Mapping), if two completely identical pages of memory are owned by two completely isolated processes, for example, two virtual machines, will those pages be merged? Or will they remain separate due to the fact that each process is isolated from each other? I’m confused b…

Linux dd create multiple iso files

I want to create an iso from an external hard drive. I used this command: sudo dd if=/dev/sdb of=usb-image.iso It works, however, the disk is large (700 GB), and i dont have space on my laptop to store that much. I was thinking about creating multiple iso files (each file 5 GB for example), this way, I can ma…