Home
  • Products
  • Solutions
  • Support
  • Company

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  • Products
  • Solutions
  • Support
  • Company
Community Functional Verification Using Vmanager Pre-Script to launch a timed script

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 65
  • Views 4459
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using Vmanager Pre-Script to launch a timed script

Montana Tools
Montana Tools over 1 year ago

I would like to send an update about a vmanager regression status x days after the regression has been run. In the current environment, the vmanager regression is creating a new filepath for logs automatically based on regression name/date, so I can't use a cron job to gather logs, as the log location is not known. 


I tried to use the pre session script to launch a detached shell script that would run after a delay, but when the pre_script runs, it waits until everything is completed before finishing and moving on to starting the regression.

Here is the test pre_script I am using:

#!/bin/sh

echo "pre_script start"

delay_script "FIRST" 1
nohup delay_script "SECOND" 30 & disown
delay_script "THIRD" 1

echo "pre_script end"
exit 0

Here is the test delay_script I am using:

#!/bin/sh

echo "Starting $1"

sleep $2

echo "Ending $1"

Here is the script output when run from terminal. After the "pre_script end", I get control back.

Here is the script output when run from vmanager. There is no "nohup", and the pre_session phase doesn't complete until all the delay scripts complete.


My question is, is there a better way to achieve my goal here? (The goal being to run a script from the vmanager log directory automatically x days after the regression). I think I could use the pre_script to send directory information for an auxiliary cron job to pick up, but I would prefer to not have to have extra cronjobs needed for this.

  • Cancel
  • StephenH
    StephenH over 1 year ago

    What's the purpose of launching some script after a delay? If this is just for cleaning up old data, note that vManager has this facility built-in. Refer to Cadence Verisium Manager User Guide -- Analyzing Runs and Failures - Defining Eviction Policy (Database Cleanup) in the documentation.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Montana Tools
    Montana Tools over 1 year ago in reply to StephenH

    There are regressions with sims that have long run times (~3-7 days), and I would like to get the overall regression status sent automatically after a time, but before the full regression finishes. If there is a way to launch a script after a certain percentage of the regression completes, that would be ideal (right now I just have the pre and post script, which are 0% and 100% completion). 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information