Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [git-server@server0 RCS.repo]$ history
- 1 mkdir gitrepo
- 2 cd git
- 3 cd gitrepo
- 4 git init --bare
- 5 ls -a
- 6 ls
- 7 mkdir RCS.repo
- 8 cd RCS.repo/
- 9 git init --bare
- 10 git branch
- 11 python
- 12 ls
- 13 python
- 14 history
- [git-server@server0 RCS.repo]$
- [root@desktop0 RCS.repo]# history
- 1 rpmquery git
- 2 yum install git-core -y
- 3 userradd git-local
- 4 useradd git-local
- 5 pasdsswd git-local
- 6 passdwd git-local
- 7 passwd git-local
- 8 su - git-local
- 9 yum install git-core -y
- 10 useradd dev1
- 11 passwd dev1
- 12 su - dev1
- 13 ls
- 14 vim aws_vm.json
- 15 python
- 16 vim aws_vm.json
- 17 python
- 18 vim aws_vm.json
- 19 python aws_vm.json
- 20 ls -lhrt
- 21 cat aws_vm1.json
- 22 vim aws_vm1.json
- 23 ls
- 24 cp aws_vm.json test.json
- 25 vim test.json
- 26 python
- 27 mv test.json aws_vm.json
- 28 cat aws_vm.json
- 29 git clone git-server@172.25.0.11:RCS.repo
- 30 ls
- 31 cp aws_vm.json RCS.repo/
- 32 cd RCS.repo/
- 33 git gui
- 34 git status
- 35 git add .
- 36 git config --global user.name cloud1
- 37 git config --global user.email cloud1@localhost
- 38 git commit -m "CR#1000,updated the aws_vm.json"
- 39 git pull -u origin master
- 40 git push -u origin master
- 41 ls
- 42 vim aws_vm.json
- 43 git status
- 44 git add
- 45 git add .
- 46 git commit -m "CR#10001,updated the aws_vm.json"
- 47 git push -u origin master
- 48 ls
- 49 git pull -u origin master
- 50 ls
- 51 vi aws_vm.json
- 52 git add .
- 53 git commit -m "CR#10002,updated the aws_vm.json"
- 54 git push -u origin master
- 55 history
- [root@desktop0 RCS.repo]#
- [root@oracle_db push]# cat push.py
- import fabric
- fabric.api.env.user="root"
- fabric.api.env.password="redhat"
- fabric.api.env.hosts=["192.168.122.22"]
- def push():
- fabric.api.put("/root/.jenkins/workspace/aws_resource_create/aws_vm.json","/aws/")
- fabric.api.run("python /root/aws_automation/create_instance.py")
- [root@oracle_db push]#
Add Comment
Please, Sign In to add comment